/* CIDECH Color Palette Override */
:root {
  /* Primary color - CIDECH Red */
  --primary-color: #D63430;
  --secondary-color: #B82A26;
  --warning-color: #E85A56;
  
  /* Override original colors */
  --white-color: #ffffff;
  --dark-color: #000000;
  --p-color: #717275;
  --section-bg-color: #f5f5f5;
  
  /* Bootstrap color overrides */
  --bs-primary: #D63430;
  --bs-primary-rgb: 214, 52, 48;
  --bs-secondary: #B82A26;
  --bs-secondary-rgb: 184, 42, 38;
  --bs-warning: #E85A56;
  --bs-warning-rgb: 232, 90, 86;
}

/* Bootstrap Color Overrides */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #D63430;
  --bs-btn-border-color: #D63430;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #B82A26;
  --bs-btn-hover-border-color: #B82A26;
  --bs-btn-focus-shadow-rgb: 214, 52, 48;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #B82A26;
  --bs-btn-active-border-color: #B82A26;
}

.btn-warning {
  --bs-btn-color: #fff;
  --bs-btn-bg: #E85A56;
  --bs-btn-border-color: #E85A56;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #D63430;
  --bs-btn-hover-border-color: #D63430;
}

.bg-primary {
  --bs-bg-opacity: 1;
  background-color: rgba(214, 52, 48, var(--bs-bg-opacity)) !important;
}

.bg-warning {
  --bs-bg-opacity: 1;
  background-color: rgba(232, 90, 86, var(--bs-bg-opacity)) !important;
}

.text-primary {
  --bs-text-opacity: 1;
  color: rgba(214, 52, 48, var(--bs-text-opacity)) !important;
}

.text-warning {
  --bs-text-opacity: 1;
  color: rgba(232, 90, 86, var(--bs-text-opacity)) !important;
}

.border-primary {
  --bs-border-opacity: 1;
  border-color: rgba(214, 52, 48, var(--bs-border-opacity)) !important;
}

/* Button Overrides */
.custom-btn {
  background: var(--primary-color) !important;
  border-radius: 100px;
  color: var(--white-color) !important;
  font-size: var(--copyright-text-font-size);
  font-weight: var(--font-weight-bold);
  padding: 12px 24px;
  transition: all 0.3s ease;
  border: none;
}

.custom-btn:hover {
  background: var(--secondary-color) !important;
  color: var(--white-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(214, 52, 48, 0.3);
}

.custom-bg-primary {
  background: var(--primary-color) !important;
}

.custom-bg-primary:hover {
  background: var(--white-color) !important;
  color: var(--primary-color) !important;
}

/* Navigation Override */
.navbar-brand {
  color: var(--primary-color) !important;
  font-weight: var(--font-weight-bold);
}

.navbar-nav .nav-link.active, 
.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

/* Site Header Override */
.site-header {
  background: var(--primary-color) !important;
}

/* Hero Section Override */
.text-warning {
  color: var(--warning-color) !important;
}

/* Ensure warning color is properly applied */
.badge.bg-warning {
  background-color: var(--warning-color) !important;
  color: var(--dark-color) !important;
}

/* Services Section Override */
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:focus, 
.nav-tabs .nav-link:hover {
  border-left-color: var(--primary-color) !important;
  background: var(--white-color);
  box-shadow: 0 1rem 3rem rgba(214, 52, 48, 0.175);
}

.nav-tabs .nav-link.active h3,
.nav-tabs .nav-link:focus h3, 
.nav-tabs .nav-link:hover h3 {
  color: var(--primary-color) !important;
}

/* Projects Section Override */
.projects-small-title {
  color: var(--primary-color) !important;
}

/* About Section Override */
.about-thumb {
  background: var(--primary-color) !important;
}

/* Platforms Section - Red Background */
.about-thumb.bg-primary {
  background: var(--primary-color) !important;
}

.about-thumb.bg-primary .about-info .small-title,
.about-thumb.bg-primary .about-info h2,
.about-thumb.bg-primary .about-info h5,
.about-thumb.bg-primary .about-info p,
.about-thumb.bg-primary .about-info .text-white {
  color: white !important;
}

.about-thumb.bg-primary .platform-icon i {
  color: white !important;
}

.about-thumb.bg-primary .platform-icon small {
  color: white !important;
}

/* Platform Cards - Red Card */
.about-thumb.bg-danger {
  background: var(--primary-color) !important;
}

.about-thumb.bg-danger .about-info h5,
.about-thumb.bg-danger .about-info p,
.about-thumb.bg-danger .about-info .text-white,
.about-thumb.bg-danger .about-info .text-white-50 {
  color: white !important;
}

.about-thumb.bg-danger .platform-card-icon {
  background: rgba(255, 255, 255, 0.2) !important;
}

.about-thumb.bg-danger .platform-card-icon i {
  color: white !important;
}

.about-thumb.bg-danger .custom-btn {
  background: white !important;
  color: var(--primary-color) !important;
  border: 2px solid white !important;
}

.about-thumb.bg-danger .custom-btn:hover {
  background: var(--warning-color) !important;
  color: white !important;
  border: 2px solid var(--warning-color) !important;
}

/* Contact Section Override */
.contact-container-wrap {
  background-color: var(--primary-color) !important;
}

.contact-icon {
  color: var(--primary-color) !important;
}

.custom-form button[type="submit"] {
  background: var(--primary-color) !important;
  border: 0;
  color: var(--white-color) !important;
  font-weight: var(--font-weight-bold);
  transition: all 0.3s;
}

.custom-form button[type="submit"]:hover,
.custom-form button[type="submit"]:focus {
  background: var(--secondary-color) !important;
  color: var(--white-color) !important;
}

/* Footer Override */
.site-footer {
  background: var(--primary-color) !important;
  padding: 60px 0 30px;
}

/* Enhanced Footer Styles */
.footer-content {
  padding: 20px 0;
}

.footer-header {
  text-align: center;
  margin-bottom: 50px;
}

.footer-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 15px;
}

.footer-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.footer-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--warning-color), var(--primary-color));
  border-radius: 2px;
}

.footer-section {
  margin-bottom: 30px;
}

.footer-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer-section-title i {
  color: var(--warning-color);
  font-size: 1.1rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.footer-contact i {
  color: var(--warning-color);
  width: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--warning-color);
  text-decoration: none;
  transform: translateX(5px);
}

.footer-link:before {
  content: "→";
  margin-right: 8px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-link:hover:before {
  opacity: 1;
  color: var(--warning-color);
}

.footer-social {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.footer-social-link:hover {
  background: var(--warning-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(232, 90, 86, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
  margin-top: 30px;
}

.footer-copyright,
.footer-designed {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-designed a {
  color: var(--warning-color);
  text-decoration: none;
  font-weight: 600;
}

.footer-designed a:hover {
  color: white;
  text-decoration: none;
}

/* Social Icons Override */
.social-icon-link:hover {
  color: var(--primary-color) !important;
}

/* Custom CIDECH Styles */
.cidech-red {
  color: var(--primary-color) !important;
}

.cidech-bg-red {
  background-color: var(--primary-color) !important;
}

.cidech-border-red {
  border-color: var(--primary-color) !important;
}

/* Hero Section Enhancements */
.hero-badge .badge {
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  background: var(--warning-color) !important;
  color: var(--dark-color) !important;
  animation: heroBadgePulse 2s infinite;
}

.hero-badge .badge.bg-warning {
  background-color: var(--warning-color) !important;
  color: var(--dark-color) !important;
}

@keyframes heroBadgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.gradient-text {
  background: linear-gradient(135deg, var(--warning-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

.hero-stats {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--warning-color) !important;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.algorithm-preview {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.algorithm-step {
  text-align: center;
  color: white;
}

.step-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.5rem;
}

.step-icon i {
  color: var(--warning-color) !important;
}

.algorithm-step h6 {
  color: white;
  font-weight: 600;
  margin-bottom: 5px;
}

.algorithm-step small {
  color: rgba(255, 255, 255, 0.8);
}

/* Section Headers */
.section-header {
  text-align: center;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--warning-color));
  border-radius: 2px;
  margin: 0 auto;
}

/* Platform Icons */
.platforms-highlight {
  background: rgba(214, 52, 48, 0.05);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(214, 52, 48, 0.1);
}

.platform-icon {
  text-align: center;
  padding: 15px;
  transition: all 0.3s ease;
}

.platform-icon i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  color: var(--warning-color) !important;
}

.platform-icon:hover {
  transform: translateY(-5px);
}

.platform-icon:hover i {
  color: var(--secondary-color) !important;
}

.platform-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.5rem;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Methodology Tab Icons */
.methodology-tab-icon {
  width: 50px;
  height: 50px;
  background: rgba(214, 52, 48, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.methodology-tab-icon i {
  color: var(--warning-color) !important;
}

.nav-tabs .nav-link:hover .methodology-tab-icon {
  background: rgba(214, 52, 48, 0.2);
  transform: scale(1.1);
}

/* Enhanced Contact Section */
.contact-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

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

.contact-hero-badge .badge {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 24px;
  background: var(--warning-color) !important;
  color: var(--dark-color) !important;
  animation: contactBadgePulse 2s infinite;
}

.contact-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.contact-hero-stats {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 30px;
}

.contact-stat {
  text-align: center;
}

.contact-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--warning-color) !important;
}

.contact-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Form Section */
.contact-form-section {
  background: #f8f9fa;
  padding: 80px 0;
}

.contact-form-container {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(214, 52, 48, 0.1);
}

.contact-form-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-form-subtitle {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

.enhanced-contact-form .form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.enhanced-contact-form .form-label i {
  color: var(--warning-color);
  margin-right: 8px;
}

.enhanced-input {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.enhanced-input:focus {
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(214, 52, 48, 0.1);
  outline: none;
}

.enhanced-submit-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(214, 52, 48, 0.3);
}

.enhanced-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(214, 52, 48, 0.4);
  color: white;
}

.form-note {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-note i {
  color: var(--warning-color);
  margin-right: 5px;
}

/* Contact Info Section */
.contact-info-section {
  background: white;
  padding: 80px 0;
}

.contact-info-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(214, 52, 48, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(214, 52, 48, 0.15);
}

.contact-info-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--warning-color) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
}

.contact-info-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.contact-info-text {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 5px;
}

.contact-info-subtext {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

.contact-info-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-info-link:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Quick Contact Section */
.quick-contact-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
}

.quick-contact-container {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.quick-contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.quick-contact-subtitle {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

.quick-contact-btn {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 15px;
  padding: 25px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(214, 52, 48, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.quick-contact-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(214, 52, 48, 0.15);
  text-decoration: none;
}

.quick-contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 1.5rem;
  color: white;
}

.whatsapp-btn .quick-contact-icon {
  background: #25D366;
}

.phone-btn .quick-contact-icon {
  background: var(--primary-color);
}

.email-btn .quick-contact-icon {
  background: var(--warning-color);
}

.quick-contact-content h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 5px;
}

.quick-contact-content p {
  color: #666;
  margin-bottom: 0;
  font-size: 0.9rem;
}

@keyframes contactBadgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.contact-info-header {
  text-align: center;
}

.contact-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--warning-color));
  border-radius: 2px;
  margin: 0 auto;
}

.contact-methods {
  margin-bottom: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  padding: 15px;
  background: rgba(214, 52, 48, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: rgba(214, 52, 48, 0.1);
  transform: translateX(5px);
}

.contact-method-icon {
  width: 50px;
  height: 50px;
  background: rgba(214, 52, 48, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.2rem;
}

.contact-method-icon .text-primary {
  color: var(--primary-color) !important;
}

.contact-method-content h5 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Enhanced Button Styles */
.custom-btn i {
  transition: transform 0.3s ease;
}

.custom-btn:hover i {
  transform: translateX(3px);
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
  .custom-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .custom-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .platform-icon i {
    font-size: 1.5rem;
  }
  
  .methodology-tab-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Footer Responsive */
  .footer-title {
    font-size: 2rem;
  }
  
  .footer-subtitle {
    font-size: 1rem;
  }
  
  .footer-section-title {
    font-size: 1.1rem;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  /* Contact Section Responsive */
  .contact-hero-title {
    font-size: 2.5rem;
  }
  
  .contact-hero-subtitle {
    font-size: 1rem;
  }
  
  .contact-form-container {
    padding: 30px;
  }
  
  .contact-form-title {
    font-size: 2rem;
  }
  
  .contact-info-card {
    padding: 20px;
  }
  
  .contact-info-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .quick-contact-container {
    padding: 30px;
  }
  
  .quick-contact-title {
    font-size: 2rem;
  }
  
  .quick-contact-btn {
    padding: 20px;
  }
  
  .quick-contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  color: white;
  text-decoration: none;
}

.whatsapp-float-btn i {
  font-size: 1.8rem;
  z-index: 2;
  position: relative;
}

.whatsapp-float-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #25D366, #128C7E);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.3s ease;
}

.whatsapp-float-btn:hover::before {
  transform: scale(1.1);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #333;
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 75px;
}


/* WhatsApp Button Responsive */
@media screen and (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float-btn {
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-float-btn i {
    font-size: 1.6rem;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-float-btn {
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float-btn i {
    font-size: 1.4rem;
  }
}

/* Achievements Section Styles */
.achievements {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.achievement-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.achievement-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.8rem;
}

.achievement-description {
  color: #6c757d;
  font-size: 1.1rem;
  line-height: 1.6;
}

.achievement-details .detail-item {
  margin-bottom: 0.5rem;
  color: #495057;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
}

.achievement-source a {
  color: var(--warning-color);
  text-decoration: none;
}

.achievement-source a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .achievement-card {
    padding: 1.5rem;
  }
  
  .achievement-title {
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* Location Section Styles */
.location {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.location-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  height: 100%;
}

.location-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.location-address {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.location-details .detail-item {
  color: #495057;
  margin-bottom: 1rem;
}

.location-details .detail-item strong {
  color: var(--primary-color);
}

.location-details .detail-item p {
  margin: 0.25rem 0 0 0;
  color: #6c757d;
}

.map-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-wrapper {
  position: relative;
}

.map-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

.location-actions .btn {
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.location-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
  .location-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .location-title {
    font-size: 1.5rem;
  }
  
  .location-actions .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .location-actions .btn:last-child {
    margin-bottom: 0;
  }
}

/* Methodology Section Styles */
.methodology {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.methodology::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23d63430" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23d63430" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23d63430" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23d63430" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23d63430" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.methodology-header {
  position: relative;
  z-index: 2;
}

.methodology-badge .badge {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-color), #c82333) !important;
  border: none;
  box-shadow: 0 4px 15px rgba(214, 52, 48, 0.3);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); box-shadow: 0 4px 15px rgba(214, 52, 48, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(214, 52, 48, 0.4); }
  100% { transform: scale(1); box-shadow: 0 4px 15px rgba(214, 52, 48, 0.3); }
}

.methodology-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.methodology-subtitle {
  font-size: 1.3rem;
  color: #6c757d;
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto;
}

.methodology-stats .stat-item {
  text-align: center;
  padding: 0 20px;
}

.methodology-stats .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 5px;
}

.methodology-stats .stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Methodology Cards */
.methodology-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.methodology-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--warning-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.methodology-card:hover::before {
  transform: scaleX(1);
}

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

.methodology-card.active {
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(214, 52, 48, 0.2);
}

.methodology-card.active::before {
  transform: scaleX(1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.method-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #c82333);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 15px rgba(214, 52, 48, 0.3);
}

.method-number {
  width: 40px;
  height: 40px;
  background: var(--warning-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.method-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.method-description {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.method-features {
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.feature-item i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.method-btn {
  width: 100%;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.method-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Content Panels */
.methodology-content {
  position: relative;
  min-height: 500px;
}

.content-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
  pointer-events: none;
}

.content-panel.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.content-badge .badge {
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 16px;
}

.content-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-color);
}

.content-description {
  font-size: 1.1rem;
  color: #6c757d;
  line-height: 1.7;
}

/* Algorithm Steps */
.algorithm-steps {
  background: rgba(214, 52, 48, 0.05);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(214, 52, 48, 0.1);
}

.step-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.step-content h6 {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
}

.step-content p {
  color: #6c757d;
  margin: 0;
  font-size: 0.9rem;
}

/* Algorithm Animation */
.algorithm-animation {
  text-align: center;
  padding: 2rem;
}

.animation-circle {
  width: 200px;
  height: 200px;
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  position: relative;
  animation: rotate 10s linear infinite;
}

.animation-circle::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--warning-color);
  border-radius: 50%;
  animation: rotate 15s linear infinite reverse;
}

.inner-circle {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-color), #c82333);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(214, 52, 48, 0.3);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animation-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.animation-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.animation-time {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Imagination Features */
.imagination-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
}

.feature-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  color: white;
}

.feature-card h6 {
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: white;
  font-size: 0.9rem;
  margin: 0;
}

/* Success Metrics */
.success-metrics {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.metric-item {
  text-align: center;
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--success-color);
  display: block;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.9rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Challenge Modal */
.challenge-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.challenge-modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #e9ecef;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f8f9fa;
  color: var(--dark-color);
}

.modal-body {
  padding: 2rem;
}

/* UNI Challenge Game Styles */
.uni-challenge-container {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.challenge-header h5 {
  color: var(--primary-color);
  font-weight: 700;
}

.problem-card {
  border: 2px solid #e9ecef;
  transition: border-color 0.3s ease;
}

.problem-card:hover {
  border-color: var(--primary-color);
}

.timer-display {
  margin: 2rem 0;
}

.timer-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timer-text {
  font-size: 2rem;
  font-weight: 800;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.timer-label {
  color: var(--dark-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.challenge-actions .btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.challenge-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result-card {
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.result-card.border-success {
  border-color: #28a745;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.result-card.border-danger {
  border-color: #dc3545;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

#solution {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

#solution h6 {
  color: var(--primary-color);
  font-weight: 700;
}

/* Scholarships Section Styles */
.scholarships {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.scholarships::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="scholarshipGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%2328a745" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%2328a745" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%2328a745" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%2328a745" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%2328a745" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23scholarshipGrain)"/></svg>');
  pointer-events: none;
}

.scholarships-header {
  position: relative;
  z-index: 2;
}

.scholarships-badge .badge {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--success-color), #20c997) !important;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: scholarshipBadgePulse 2s infinite;
}

@keyframes scholarshipBadgePulse {
  0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
  100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
}

.scholarships-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scholarships-subtitle {
  font-size: 1.3rem;
  color: #6c757d;
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto;
}

.scholarships-stats .stat-item {
  text-align: center;
  padding: 0 20px;
}

.scholarships-stats .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 5px;
}

.scholarships-stats .stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Scholarship Cards */
.scholarship-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.scholarship-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--success-color), var(--primary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.scholarship-card:hover::before {
  transform: scaleX(1);
}

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

.scholarship-card.premium {
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(214, 52, 48, 0.2);
}

.scholarship-card.premium::before {
  background: linear-gradient(90deg, var(--primary-color), var(--warning-color));
  transform: scaleX(1);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(40, 167, 69, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.scholarship-card:hover .card-glow {
  opacity: 1;
}

.scholarship-card.premium .card-glow {
  background: radial-gradient(circle, rgba(214, 52, 48, 0.1) 0%, transparent 70%);
}

.card-header {
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-footer {
  background: transparent;
  border: none;
  padding: 1rem 1.5rem 1.5rem;
}

.scholarship-icon {
  width: 150px;
  height: 100px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: none;
  overflow: visible;
}

.scholarship-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.scholarship-card.premium .scholarship-icon {
  background: transparent;
  box-shadow: none;
}

.scholarship-badge .badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border: none;
  border-radius: 20px;
}

.scholarships-badge .badge {
  background-color: #dc3545 !important;
  color: white !important;
}

.scholarship-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.scholarship-subtitle {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.scholarship-description {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.scholarship-features {
  margin-bottom: 1.5rem;
}

.scholarship-features .feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.scholarship-features .feature-item i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.scholarship-btn {
  width: 100%;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.scholarship-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Universities and Institutes Carousel */
.universities-carousel {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.universities-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="universityGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23dc3545" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23dc3545" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%23dc3545" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%23dc3545" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="%23dc3545" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23universityGrain)"/></svg>');
  pointer-events: none;
}

.institutions-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

.institutions-slider {
  display: flex;
  overflow-x: hidden;
  gap: 1.5rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
  position: relative;
}

.institutions-slider::-webkit-scrollbar {
  display: none;
}

.institution-item {
  flex: 0 0 auto;
  text-align: center;
  min-width: 160px;
  height: 110px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.institution-item:hover {
  transform: scale(1.1);
}

.institution-logo {
  max-height: 90px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: grayscale(10%) opacity(0.9);
  display: block;
}

.institution-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* Carousel Navigation Buttons */
.carousel-btn {
  background: #dc3545 !important;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
  z-index: 10;
}

.carousel-btn:hover {
  background: #c82333 !important;
  color: white !important;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.carousel-btn:active {
  background: #b02a37 !important;
  color: white !important;
  transform: scale(0.95);
}

.carousel-btn-left {
  margin-right: 1rem;
}

.carousel-btn-right {
  margin-left: 1rem;
}

/* Hide buttons on mobile */
@media (max-width: 768px) {
  .carousel-btn {
    display: none;
  }
  
  .institutions-slider {
    overflow-x: auto;
  }
}

/* Scholarship Modal */
.scholarship-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.scholarship-modal.active {
  display: flex;
}

.scholarship-modal .modal-content {
  background: white;
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scholarshipModalSlideIn 0.3s ease;
}

@keyframes scholarshipModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.scholarship-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #e9ecef;
}

.scholarship-modal .modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
}

.scholarship-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.scholarship-modal .modal-close:hover {
  background: #f8f9fa;
  color: var(--dark-color);
}

.scholarship-modal .modal-body {
  padding: 2rem;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.detail-icon {
  width: 120px;
  height: 120px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: none;
  flex-shrink: 0;
}

.detail-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.detail-info p {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.detail-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
}

.detail-description p {
  font-size: 1.1rem;
  color: #6c757d;
  line-height: 1.7;
}

.requirements-list,
.benefits-list {
  display: grid;
  gap: 1rem;
}

.requirement-item,
.benefit-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

.benefit-item {
  border-left-color: var(--success-color);
}

.requirement-item i,
.benefit-item i {
  margin-right: 1rem;
  font-size: 1.2rem;
}

.requirement-item i {
  color: var(--primary-color);
}

.benefit-item i {
  color: var(--success-color);
}

/* Scholarship CTA */
.scholarship-cta {
  background: linear-gradient(135deg, var(--primary-color), #c82333);
  border-radius: 20px;
  padding: 3rem 2rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.scholarship-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="ctaPattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23ctaPattern)"/></svg>');
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white !important;
}

.cta-description {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  color: white !important;
}

.cta-actions .btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.cta-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Social Icons White */
.social-icon-link {
  color: #dc3545 !important;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon-link:hover {
  color: #c82333 !important;
  opacity: 0.8;
  transform: scale(1.1);
}

/* Footer Icons White */
.site-footer i {
  color: white !important;
}

.site-footer .footer-social-link i {
  color: white !important;
}

.site-footer .footer-social-link:hover i {
  color: white !important;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .scholarships-title {
    font-size: 2.5rem;
  }
  
  .scholarship-card {
    padding: 1.5rem;
  }
  
  .detail-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-actions .btn {
    width: 100%;
  }
}

.scholarship-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.scholarship-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f8f9fa;
}

.scholarship-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.scholarship-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.scholarship-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scholarship-description {
  color: #6c757d;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.scholarship-details .detail-item {
  color: #495057;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.scholarship-details .detail-item strong {
  color: var(--primary-color);
}

.scholarship-actions {
  text-align: center;
  margin-top: 1.5rem;
}

.scholarship-actions .btn {
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.scholarship-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scholarship-info {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.scholarship-info h4 {
  color: var(--primary-color);
  font-weight: 700;
}

.scholarship-info p {
  color: #6c757d;
  font-size: 1.1rem;
}

@media screen and (max-width: 768px) {
  .scholarship-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .scholarship-title {
    font-size: 1.3rem;
  }
  
  .scholarship-icon {
    font-size: 2.5rem;
  }
  
  .scholarship-info {
    padding: 1.5rem;
  }
}

/* ===============================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   =============================================== */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography */
  h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.5rem !important;
  }
  
  h4 {
    font-size: 1.25rem !important;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 3rem 0;
    min-height: 70vh;
  }
  
  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  
  /* Statistics */
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  /* Methodology Section */
  .methodology-card {
    margin-bottom: 1.5rem;
  }
  
  .methodology-content {
    padding: 1.5rem 0;
  }
  
  .content-panel {
    padding: 1.5rem;
  }
  
  /* Scholarships Section */
  .scholarship-card {
    margin-bottom: 1.5rem;
  }
  
  .scholarship-modal .modal-content {
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  /* Universities Carousel */
  .institutions-carousel-container {
    padding: 1rem 0;
  }
  
  .institution-item {
    min-width: 120px;
    height: 80px;
  }
  
  .institution-logo {
    max-height: 60px;
    max-width: 100px;
  }
  
  /* Location Section */
  .location iframe {
    height: 250px;
  }
  
  /* Footer */
  .site-footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    text-align: center;
  }
  
  .footer-content .col-lg-5,
  .footer-content .col-lg-3,
  .footer-content .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  /* Spacing */
  .section-padding {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Text alignment */
  .text-center-mobile {
    text-align: center !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .institution-item {
    min-width: 140px;
    height: 90px;
  }
  
  .institution-logo {
    max-height: 70px;
    max-width: 120px;
  }
  
  .location iframe {
    height: 300px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .methodology-card {
    margin-bottom: 2rem;
  }
  
  .scholarship-card {
    margin-bottom: 2rem;
  }
  
  .institution-item {
    min-width: 150px;
    height: 100px;
  }
  
  .institution-logo {
    max-height: 80px;
    max-width: 130px;
  }
  
  .location iframe {
    height: 350px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .institution-item {
    min-width: 160px;
    height: 110px;
  }
  
  .institution-logo {
    max-height: 90px;
    max-width: 150px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .institution-item {
    min-width: 180px;
    height: 120px;
  }
  
  .institution-logo {
    max-height: 100px;
    max-width: 160px;
  }
}

/* ===============================================
   MOBILE NAVIGATION IMPROVEMENTS
   =============================================== */

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
  }
  
  .navbar-nav .nav-link:hover {
    color: var(--danger-color) !important;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 5px;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
}

/* ===============================================
   PERFORMANCE OPTIMIZATIONS
   =============================================== */

/* Reduce motion for users who prefer it */
@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;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-outline-danger {
    border-width: 2px;
  }
  
  .card {
    border: 2px solid #000;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .bg-light {
    background-color: #1a1a1a !important;
    color: #fff;
  }
  
  .text-dark {
    color: #fff !important;
  }
}

/* ===============================================
   TOUCH DEVICE OPTIMIZATIONS
   =============================================== */

@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .carousel-btn {
    width: 60px;
    height: 60px;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover {
    transform: none;
  }
  
  .institution-item:hover {
    transform: none;
  }
  
  .scholarship-card:hover {
    transform: none;
  }
}

/* ===============================================
   CAROUSEL MOBILE OPTIMIZATION
   =============================================== */

/* Carousel Image Optimization for Mobile */
/* Override original carousel styles for mobile optimization */

/* Mobile Carousel Adjustments */
@media (max-width: 767.98px) {
  .hero {
    height: auto !important;
    min-height: 60vh;
  }
  
  .hero .container-fluid {
    height: auto !important;
  }
  
  .hero .row {
    height: auto !important;
  }
  
  .hero-carousel,
  .carousel-inner,
  .carousel-item {
    height: 60vh !important;
    min-height: 400px;
  }
  
  .carousel-image-wrap {
    height: 100% !important;
  }
  
  .carousel-image {
    object-fit: cover !important;
    object-position: center center;
  }
  
  .carousel-caption {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    text-align: center !important;
    padding: 2rem 1rem !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border-radius: 0 !important;
    backdrop-filter: blur(3px) !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .hero-title {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
  }
  
  .hero-title .text-danger {
    color: #ff6b6b !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  }
  
  .hero-title {
    font-size: 1.8rem !important;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 1.5rem;
  }
  
  .hero-badge .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  .hero-stats {
    margin-bottom: 1.5rem;
  }
  
  .hero-stats .stat-number {
    font-size: 1.5rem;
  }
  
  .hero-stats .stat-label {
    font-size: 0.75rem;
  }
  
  .custom-btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 575.98px) {
  .hero {
    height: auto !important;
    min-height: 50vh;
  }
  
  .hero .container-fluid {
    height: auto !important;
  }
  
  .hero .row {
    height: auto !important;
  }
  
  .hero-carousel,
  .carousel-inner,
  .carousel-item {
    height: 50vh !important;
    min-height: 350px;
  }
  
  .carousel-image-wrap {
    height: 100% !important;
  }
  
  .carousel-caption {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    text-align: center !important;
    padding: 1.5rem 0.75rem !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border-radius: 0 !important;
    backdrop-filter: blur(3px) !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .hero-title {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-weight: bold !important;
  }
  
  .hero-title .text-danger {
    color: #ff6b6b !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  }
  
  .hero-title {
    font-size: 1.5rem !important;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 0.9rem !important;
  }
  
  .hero-badge .badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-stats .row {
    gap: 0.5rem;
  }
  
  .hero-stats .stat-number {
    font-size: 1.3rem;
  }
  
  .hero-stats .stat-label {
    font-size: 0.7rem;
  }
  
  .custom-btn {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    margin-bottom: 0.5rem;
  }
}

/* Landscape Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero {
    height: auto !important;
    min-height: 100vh;
  }
  
  .hero .container-fluid {
    height: auto !important;
  }
  
  .hero .row {
    height: auto !important;
  }
  
  .hero-carousel,
  .carousel-inner,
  .carousel-item {
    height: 100vh !important;
  }
  
  .carousel-image-wrap {
    height: 100% !important;
  }
  
  .carousel-caption {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    text-align: center !important;
    padding: 1rem !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border-radius: 0 !important;
    backdrop-filter: blur(3px) !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .hero-title {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-weight: bold !important;
  }
  
  .hero-title .text-danger {
    color: #ff6b6b !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  }
  
  .hero-title {
    font-size: 1.6rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
}

/* Carousel Controls Mobile */
@media (max-width: 767.98px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .carousel-control-prev {
    left: 10px;
  }
  
  .carousel-control-next {
    right: 10px;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 20px;
    height: 20px;
  }
}

/* Achievements carousel controls: red background + white icons */
.achievement-carousel-control {
  width: 56px;
  height: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: #e6001a;
  border-radius: 50%;
  opacity: 0.95;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.achievement-carousel-control.carousel-control-prev {
  left: -28px;
}

.achievement-carousel-control.carousel-control-next {
  right: -28px;
}

.achievement-carousel-control:hover {
  background: #cc0017;
  opacity: 1;
}

.achievement-carousel-control .carousel-control-prev-icon,
.achievement-carousel-control .carousel-control-next-icon {
  width: 22px;
  height: 22px;
  background-size: 100% 100%;
  filter: none;
}

.achievement-carousel-control .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

.achievement-carousel-control .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

@media (max-width: 767.98px) {
  .achievement-carousel-control {
    width: 48px;
    height: 48px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  }

  .achievement-carousel-control.carousel-control-prev {
    left: -12px;
  }

  .achievement-carousel-control.carousel-control-next {
    right: -12px;
  }
}

/* Carousel Indicators Mobile */
@media (max-width: 767.98px) {
  .carousel-indicators {
    bottom: 10px;
  }
  
  .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
  }
}

/* Additional Mobile Hero Section Fixes */
@media (max-width: 767.98px) {
  .hero {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .hero .container-fluid {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .hero .row {
    margin: 0 !important;
  }
  
  .hero .col-12 {
    padding: 0 !important;
  }
  
  /* Remove any extra spacing after hero section */
  .hero + * {
    margin-top: 0 !important;
  }
  
  /* Ensure hero title is always visible */
  .hero-title {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-weight: bold !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .hero-title .text-danger {
    color: #ff6b6b !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  }
  
  /* Ensure subtitle is also visible */
  .hero-subtitle {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure all carousel elements are visible */
  .hero-badge {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .hero-badge .badge {
    background-color: #ffc107 !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  }
  
  .hero-stats {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .stat-number {
    color: #dc3545 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    font-weight: bold !important;
  }
  
  .stat-label {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  }
  
  .custom-btn {
    background-color: #dc3545 !important;
    color: white !important;
    border: none !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  }
}

/* Estilos mejorados para el carrusel de estudiantes */
#studentsCarousel {
  margin: 3rem 0;
  padding: 0 2rem;
}

#studentsCarousel .carousel-inner {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Tarjetas de estudiantes mejoradas */
.student-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.student-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(214, 52, 48, 0.2);
  border-color: #D63430;
}

.student-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.student-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.student-card:hover .student-image img {
  transform: scale(1.1);
}

/* Placeholder para estudiantes sin foto */
.student-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: all 0.4s ease;
}

.student-placeholder i {
  font-size: 4rem;
  color: #6c757d;
  transition: all 0.4s ease;
}

.student-card:hover .student-placeholder {
  background: linear-gradient(135deg, #D63430 0%, #B82A26 100%);
}

.student-card:hover .student-placeholder i {
  color: white;
  transform: scale(1.1);
}

.student-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
}

.student-badge .badge {
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

.student-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.student-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  line-height: 1.3;
}

.student-age {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.student-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #34495e;
}

.info-item i {
  color: #D63430;
  font-size: 1rem;
  width: 16px;
}

.student-description {
  color: #5a6c7d;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: auto;
  margin-bottom: 0;
}

/* Controles del carrusel mejorados */
#studentsCarousel .carousel-control-prev,
#studentsCarousel .carousel-control-next {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #D63430 0%, #B82A26 100%);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(214, 52, 48, 0.3);
  border: 3px solid white;
}

#studentsCarousel .carousel-control-prev {
  left: -30px;
}

#studentsCarousel .carousel-control-next {
  right: -30px;
}

#studentsCarousel .carousel-control-prev:hover,
#studentsCarousel .carousel-control-next:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 12px 35px rgba(214, 52, 48, 0.4);
}

#studentsCarousel .carousel-control-prev-icon,
#studentsCarousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* Indicadores mejorados con mejor espaciado */
#studentsCarousel .carousel-indicators {
  bottom: -80px;
  margin-bottom: 20px;
}

#studentsCarousel .carousel-indicators button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(214, 52, 48, 0.3);
  border: 3px solid white;
  margin: 0 8px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#studentsCarousel .carousel-indicators button.active {
  background-color: #D63430;
  transform: scale(1.3);
  box-shadow: 0 6px 20px rgba(214, 52, 48, 0.4);
}

#studentsCarousel .carousel-indicators button:hover {
  background-color: rgba(214, 52, 48, 0.6);
  transform: scale(1.2);
}

/* Animaciones mejoradas */
#studentsCarousel .carousel-item {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efectos de gradiente en las tarjetas */
.student-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #D63430, #E85A56, #D63430);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.student-card:hover::before {
  opacity: 1;
}

/* Responsive mejorado */
@media (max-width: 768px) {
  #studentsCarousel {
    padding: 0 1rem;
    margin: 2rem 0 4rem 0; /* Más margen inferior para separar de las estadísticas */
  }
  
  .student-card {
    margin-bottom: 1.5rem;
  }
  
  .student-image {
    height: 180px;
  }
  
  .student-content {
    padding: 20px;
  }
  
  .student-name {
    font-size: 1.2rem;
  }
  
  #studentsCarousel .carousel-control-prev,
  #studentsCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
  }
  
  #studentsCarousel .carousel-control-prev {
    left: -25px;
  }
  
  #studentsCarousel .carousel-control-next {
    right: -25px;
  }
  
  /* Mejor espaciado para indicadores en tablet */
  #studentsCarousel .carousel-indicators {
    bottom: -70px;
    margin-bottom: 30px;
  }
  
  #studentsCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    margin: 0 6px;
  }
}

@media (max-width: 576px) {
  #studentsCarousel {
    margin: 1.5rem 0 5rem 0; /* Aún más espacio en mobile */
    padding: 0 0.5rem;
  }
  
  /* En mobile, mostrar solo 1 estudiante por slide */
  .col-lg-4.col-md-6.col-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  /* Ocultar estudiantes adicionales en mobile */
  .d-none.d-lg-block {
    display: none !important;
  }
  
  .student-image {
    height: 200px; /* Imagen más grande en mobile para 1 estudiante */
  }
  
  .student-content {
    padding: 20px; /* Más padding para mejor uso del espacio */
  }
  
  .student-name {
    font-size: 1.3rem; /* Texto más grande para 1 estudiante */
  }
  
  .student-description {
    font-size: 0.9rem;
  }
  
  /* Indicadores más pequeños y mejor espaciados en mobile */
  #studentsCarousel .carousel-indicators {
    bottom: -60px;
    margin-bottom: 40px;
    padding: 0 20px;
  }
  
  #studentsCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border: 2px solid white;
  }
  
  /* Controles más pequeños en mobile */
  #studentsCarousel .carousel-control-prev,
  #studentsCarousel .carousel-control-next {
    width: 45px;
    height: 45px;
  }
  
  #studentsCarousel .carousel-control-prev {
    left: -22px;
  }
  
  #studentsCarousel .carousel-control-next {
    right: -22px;
  }
}

/* Espaciado ajustado para acercar las estadísticas al carrusel */
.achievements-stats {
  margin-top: 1.5rem !important;
}

.carousel-stats-spacing {
  margin-top: 1.5rem !important;
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .achievements-stats {
    margin-top: 2rem !important;
  }
  
  .carousel-stats-spacing {
    margin-top: 2.25rem !important;
    padding-top: 1.25rem;
  }
}

@media (max-width: 576px) {
  .achievements-stats {
    margin-top: 2.5rem !important;
  }
  
  .carousel-stats-spacing {
    margin-top: 2.75rem !important;
    padding-top: 1.5rem;
  }
}

/* Mobile-friendly overrides for the hero carousel
   These rules intentionally override earlier fixed vh/heights
   so images and captions behave correctly on small screens. */
@media (max-width: 767.98px) {
  .hero-carousel,
  .carousel-inner,
  .carousel-item {
    height: auto !important;
    min-height: 0 !important;
  }

  .carousel-image-wrap {
    position: relative !important;
    height: auto !important;
  }

  .carousel-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
  }

  .carousel-caption {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding: 1rem !important;
    margin-top: -0.5rem !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.45)) !important;
    display: block !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 3rem !important;
    height: 3rem !important;
  }

  .hero-title {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
  }

  .hero-subtitle {
    font-size: 0.9rem !important;
  }
}
