/* ======================================
   PINES Institute Custom Styles
   Color Scheme: Navy (#132B4A), Red (#B91A1E), Light Gray (#E6E6E6)
   ====================================== */

/* Root Variables */
:root {
    --navy-color: #132B4A;
    --red-color: #B91A1E;
    --light-gray: #E6E6E6;
    --white: #ffffff;
    --dark-gray: #333333;
    --text-muted: #666666;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: #FAF8F4;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: var(--navy-color);
}

/* Custom Text Colors */
.text-navy {
    color: var(--navy-color) !important;
}

.text-red {
    color: var(--red-color) !important;
}

.text-light-gray {
    color: var(--light-gray) !important;
}

/* Hero Background Carousel Styles */
.hero-bg-carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.hero-bg-slide {
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.hero-overlay-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-bg-carousel .carousel-indicators {
    bottom: 20px;
    z-index: 3;
}

.hero-bg-carousel .carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    background-color: transparent;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.hero-bg-carousel .carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.hero-bg-carousel .carousel-control-prev,
.hero-bg-carousel .carousel-control-next {
    width: 10%;
    opacity: 0.7;
    z-index: 3;
}

.hero-bg-carousel .carousel-control-prev:hover,
.hero-bg-carousel .carousel-control-next:hover {
    opacity: 1;
}

.hero-bg-carousel .carousel-control-prev-icon,
.hero-bg-carousel .carousel-control-next-icon {
    width: 35px;
    height: 35px;
    background-size: 35px 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.hero-bg-carousel .carousel-control-prev-icon:hover,
.hero-bg-carousel .carousel-control-next-icon:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Badge Styles for Hero */
.hero-overlay-content .badge {
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Custom Background Colors */
.bg-navy {
    background-color: var(--navy-color) !important;
}

.bg-red {
    background-color: var(--red-color) !important;
}

.bg-light-custom {
    background-color: var(--light-gray) !important;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    min-height: 100px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.8rem !important;
    font-weight: bold !important;
    color: var(--navy-color) !important;
}

.navbar-brand img {
    transition: all 0.3s ease;
    /* border-radius: 8px; */
    
}

.navbar-brand:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.navbar-nav .nav-link {
    color: var(--navy-color) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.8rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--red-color) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--red-color) !important;
    font-weight: 600;
}

.navbar-toggler {
    border: 2px solid var(--navy-color);
    color: var(--navy-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(19, 43, 74, 0.25);
}

/* Custom Buttons */
.btn-custom-navy {
    background-color: var(--navy-color);
    border-color: var(--navy-color);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-custom-navy:hover {
    background-color: #0f1f35;
    border-color: #0f1f35;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(19, 43, 74, 0.3);
}

.btn-custom-red {
    background-color: white !important;
    border-color: red;
    color: red;
    padding: 7px 13px;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-custom-red:hover {
    background-color: #b81d23 !important;
    border-color: #ff1c23;
    color: rgb(255, 255, 255);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(185, 26, 30, 0.3);
}

.btn-outline-custom-navy {
    border: 2px solid var(--navy-color);
    color: var(--navy-color);
    background-color: transparent;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-custom-navy:hover {
    background-color: var(--navy-color);
    border-color: var(--navy-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-custom-red {
    border: 2px solid var(--red-color);
    color: var(--red-color);
    background-color: transparent;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-custom-red:hover {
    background-color: var(--red-color);
    border-color: var(--red-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--navy-color) 0%, #1a3a5a 100%);
    color: var(--white);
    padding: 100px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--red-color);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy-color);
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--red-color);
    margin: 20px auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.text-success{

    color: #10125f !important;
}
.btn-primary {

    background-color: rgb(219, 22, 22) !important;
    border-color: red;
    color: rgb(233, 233, 233);
}

.btn-outline-primary:hover {
    background-color: #110b4e !important;
    border-color: #e6e6e6;
    color: rgb(255, 255, 255);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(185, 26, 30, 0.3);
}
/* Cards */
.card-custom {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background-color: var(--white);
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    color: var(--red-color);
    margin-bottom: 20px;
}
p {
    color: #0f1f35 !important;
}
.card-custom h4,
.card-custom h5 {
    color: var(--navy-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.card-custom p {
    color: var(--text-muted);
    line-height: 1.6;
}
.fa, .fa-brands, .fa-classic, .fa-regular, .fa-sharp, .fa-solid, .fab, .far, .fas{

    color: #b91a1e !important;
    
 }
.btn-light{

    background-color: #b91a1e !important;
    border-color: #b91a1e;
    color: rgb(255, 255, 255);
    font-weight: 600;
    padding: 10px 20px;
    text-transform: uppercase;                      
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--red-color) 0%, #8a1518 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.text-primary{


    color: #b91a1e !important;
}

.stat-number
{
    color: #b91a1e !important;
}
.no{
    background-color:#10125f !important ;
}
.cta-section h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
}

.bg-gradient-light{

    background-color: white !important;
}

.cta-section .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Forms */
.form-control {
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--navy-color);
    box-shadow: 0 0 0 0.25rem rgba(19, 43, 74, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--navy-color);
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background-color: var(--navy-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer p,
.footer li {
    color: var(--light-gray);
    line-height: 1.8;
}

.footer a {
    color: var(--light-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--red-color);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(230, 230, 230, 0.2);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--red-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--red-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--navy-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-custom-navy,
    .btn-custom-red,
    .btn-outline-custom-navy,
    .btn-outline-custom-red {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.box-shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.border-custom {
    border: 2px solid var(--light-gray);
}

.rounded-custom {
    border-radius: 10px;
}


.modern-hero {
  height: 100vh; /* full screen height */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;

  /* Multiple Background Images for Gesture Effects */
  background-image: 
    linear-gradient(135deg, rgba(185, 26, 30, 0.1) 0%, rgba(19, 43, 74, 0.1) 100%),
    url('../images/bg.png'), /* Main background */
    url('pines.svg'); /* PINES SVG overlay */
  
  background-size: cover, cover, contain;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed; /* parallax effect */
  
  color: #fff;
  animation: heroAnimation 20s ease-in-out infinite;
}

/* Animated background switching */
@keyframes heroAnimation {
  0%, 33% {
    background-image: 
      linear-gradient(135deg, rgba(185, 26, 30, 0.2) 0%, rgba(19, 43, 74, 0.2) 100%),
      url('../images/bg.png'),
      url('pines.svg');
  }
  34%, 66% {
    background-image: 
      linear-gradient(135deg, rgba(185, 26, 30, 0.2) 0%, rgba(19, 43, 74, 0.2) 100%),
      url('../images/bg1.png'),
      url('pines.svg');
  }
  67%, 100% {
    background-image: 
      linear-gradient(135deg, rgba(185, 26, 30, 0.2) 0%, rgba(19, 43, 74, 0.2) 100%),
      url('../images/bg.png'),
      url('pines.svg');
  }
}

/* Enhanced overlay with gesture patterns */
.modern-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(185, 26, 30, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(19, 43, 74, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
  animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.6;
  }
}

/* Gesture-inspired floating elements */
.modern-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.03) 2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.03) 2px, transparent 2px);
  background-size: 100px 100px, 150px 150px, 200px 200px, 120px 120px;
  animation: gestureFloat 15s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes gestureFloat {
  0%, 100% {
    transform: translateX(0px) translateY(0px);
  }
  33% {
    transform: translateX(30px) translateY(-20px);
  }
  66% {
    transform: translateX(-20px) translateY(30px);
  }
}

/* Alternative gesture backgrounds - you can switch these */
.modern-hero.medical-theme {
  background-image: 
    linear-gradient(135deg, rgba(185, 26, 30, 0.2) 0%, rgba(19, 43, 74, 0.2) 100%),
    url(''); /* Medical students */
}

.modern-hero.engineering-theme {
  background-image: 
    linear-gradient(135deg, rgba(185, 26, 30, 0.2) 0%, rgba(19, 43, 74, 0.2) 100%),
    url(''); /* Engineering students */
}

.modern-hero.study-theme {
  background-image: 
    linear-gradient(135deg, rgba(185, 26, 30, 0.2) 0%, rgba(19, 43, 74, 0.2) 100%),
    url(''); /* Library/Study scene */
}

/* Ensure content is above overlays */
.modern-hero .container {
  position: relative;
  z-index: 2;
}

/* Gesture-inspired particle effects */
.floating-shapes .shape {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(185, 26, 30, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

/* Enhanced badge with gesture effect */
.hero-badge .badge {
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for gesture backgrounds */
@media (max-width: 768px) {
  .modern-hero {
    background-attachment: scroll; /* Better performance on mobile */
    min-height: 80vh;
  }
  
  .modern-hero::after {
    animation-duration: 10s; /* Faster animation on mobile */
  }
}

/* Hand gesture cursor effects */
.modern-hero .btn:hover {
  cursor: pointer;
  transform: scale(1.05) translateY(-2px);
}

/* Page Header Styles */
.page-header {
  padding: 80px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy-color);
  margin-bottom: 20px;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Course Specific Styles */
.course-info {
  padding: 2rem 0;
}

.course-highlights {
  margin-top: 2rem;
}

.course-stats .card {
  transition: all 0.3s ease;
}

.course-stats .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.schedule-item {
  transition: all 0.3s ease;
}

.schedule-item:hover {
  background-color: #f8f9fa !important;
  transform: translateX(5px);
}

.info-item {
  border-left: 3px solid var(--red-color);
  padding-left: 15px;
}

/* Background utility class */
.bg-custom-red {
  background-color: var(--red-color) !important;
}

.text-white{

    color: white !important;
}