/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  /* Fonts */
  --font-family-sans-serif: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-headings: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

  /* Primary Colors (Gradient Theme - Professional Blue/Green Tones) */
  --primary-color-start: #2A7C9A; /* Deep Cerulean */
  --primary-color-end: #35A67D;   /* Ocean Green */
  --primary-gradient: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
  --primary-color: var(--primary-color-start); /* Fallback or solid primary */
  --rgb-primary-color-start: 42, 124, 154; /* For rgba usage */
  --primary-color-dark: #1F5F78; /* Darker shade of primary for hovers/accents */
  
  /* Accent Colors */
  --accent-color-1: #FFB800; /* Warm Gold - for call to actions or highlights */
  --accent-color-2: #E95D3C; /* Coral Red - for secondary accents */

  /* Neutral Colors */
  --text-color-light: #FFFFFF;
  --text-color-dark: #343a40; 
  --text-color-headings: #212529; 
  --text-color-muted: #6c757d;   
  --background-color-light: #f8f9fa;
  --background-color-body: #FFFFFF;
  --border-color: #dee2e6;       

  /* UI Element Specifics */
  --card-bg: var(--text-color-light);
  --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.07);
  --volumetric-shadow: 
    0 2.8px 2.2px rgba(0, 0, 0, 0.02),
    0 6.7px 5.3px rgba(0, 0, 0, 0.028),
    0 12.5px 10px rgba(0, 0, 0, 0.035),
    0 22.3px 17.9px rgba(0, 0, 0, 0.042),
    0 41.8px 33.4px rgba(0, 0, 0, 0.05),
    0 100px 80px rgba(0, 0, 0, 0.07);
  --volumetric-shadow-hover:
    0 4px 3px rgba(0, 0, 0, 0.03),
    0 8px 6.5px rgba(0, 0, 0, 0.04),
    0 15px 12px rgba(0, 0, 0, 0.05),
    0 27px 22px rgba(0, 0, 0, 0.06),
    0 50px 40px rgba(0, 0, 0, 0.07),
    0 120px 95px rgba(0, 0, 0, 0.09);

  /* Transitions & Animations */
  --transition-speed-fast: 0.2s;
  --transition-speed-normal: 0.3s;
  --transition-speed-slow: 0.5s;
  --timing-function-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55); 

  /* Spacing */
  --section-padding-y: 5rem; 
  --header-height: 70px;
}

/*--------------------------------------------------------------
# General & Base Styles
--------------------------------------------------------------*/
body {
  font-family: var(--font-family-sans-serif);
  color: var(--text-color-dark);
  background-color: var(--background-color-body);
  line-height: 1.7;
  padding-top: var(--header-height);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: 700;
  color: var(--text-color-headings);
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.8rem; font-weight: 900; }
h2.section-title { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-color-dark);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed-fast) ease-in-out;
}

a:hover {
  color: var(--primary-color-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-title {
  font-weight: 900;
  color: var(--text-color-headings);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.bg-light-gradient {
  background: linear-gradient(to bottom, var(--background-color-light) 0%, #e9ecef 100%);
}

/*--------------------------------------------------------------
# Header (Navbar)
--------------------------------------------------------------*/
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  height: var(--header-height);
  transition: all var(--transition-speed-normal) ease;
}

.navbar-brand {
  font-family: var(--font-family-headings);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--text-color-headings) !important;
}

.navbar .nav-link {
  font-family: var(--font-family-headings);
  font-weight: 700;
  color: var(--text-color-dark) !important;
  margin-left: 10px;
  margin-right: 10px;
  padding: 0.5rem 0.75rem;
  position: relative;
  transition: color var(--transition-speed-fast) ease;
}

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

.navbar .nav-link::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  visibility: hidden;
  transform: scaleX(0);
  transition: all var(--transition-speed-normal) var(--timing-function-elastic);
}

.navbar .nav-link:hover::before,
.navbar .nav-link.active::before {
  visibility: visible;
  transform: scaleX(1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 37, 41, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*--------------------------------------------------------------
# Buttons (Global)
--------------------------------------------------------------*/
.btn, button, input[type="submit"], input[type="button"] {
  font-family: var(--font-family-headings);
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 50px; 
  transition: all var(--transition-speed-normal) var(--timing-function-elastic);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-width: 2px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-primary {
  background: var(--primary-gradient);
  border-color: transparent;
  color: var(--text-color-light);
}

.btn-primary:hover {
  background: var(--primary-gradient); 
  opacity: 0.9;
  border-color: transparent;
  color: var(--text-color-light);
}

.btn-secondary {
  background-color: var(--text-color-muted);
  border-color: var(--text-color-muted);
  color: var(--text-color-light);
}

.btn-secondary:hover {
  background-color: #5a6268; 
  border-color: #545b62;
  color: var(--text-color-light);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
}
.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border-color: var(--primary-color);
}

.read-more-link, a.btn-outline-primary.micro-interaction { /* Style for "Read more" */
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
    position: relative;
    padding-right: 20px;
    border: none;
    background: none;
    box-shadow: none;
    padding: 0.25rem 20px 0.25rem 0; /* Adjust padding */
    text-transform: none; /* If it's not a button */
}

.read-more-link::after, a.btn-outline-primary.micro-interaction::after {
    content: '\2192'; /* Right arrow */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-speed-fast) ease;
}

.read-more-link:hover::after, a.btn-outline-primary.micro-interaction:hover::after {
    transform: translateY(-50%) translateX(5px);
}
a.btn-outline-primary.micro-interaction:hover {
    transform: none; /* Disable button's default hover transform if using arrow */
    box-shadow: none;
    background-color: transparent;
    color: var(--primary-color-dark);
}


/*--------------------------------------------------------------
# Volumetric UI Elements & Cards
--------------------------------------------------------------*/
.volumetric-element {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--volumetric-shadow);
  transition: transform var(--transition-speed-normal) var(--timing-function-elastic), 
              box-shadow var(--transition-speed-normal) var(--timing-function-elastic);
  overflow: hidden; 
}

.volumetric-element:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--volumetric-shadow-hover);
}

.card {
  border: none; 
  display: flex; 
  flex-direction: column; 
  height: 100%;
}

.card-image {
  width: 100%;
  height: 200px; 
  overflow: hidden;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative; /* For overlays if needed */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  transition: transform var(--transition-speed-slow) ease;
}

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

.card-body {
  padding: 1.5rem;
  flex-grow: 1; 
  display: flex;
  flex-direction: column;
}
.card-body .card-title {
    font-weight: 700;
    color: var(--text-color-headings);
}

.card-text {
    color: var(--text-color-dark);
    font-size: 0.95rem;
    flex-grow: 1; 
}

.team-card .card-body, .award-item {
    text-align: center;
}
.team-card .card-image { /* Specific override for team card image positioning */
    margin-left: auto;
    margin-right: auto;
}
.award-item img {
    width: 120px; 
    height: 120px;
    object-fit: contain; 
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}


/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  min-height: calc(100vh - var(--header-height));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Dark overlay is applied via inline style in HTML using linear-gradient */
}

.hero-section h1, .hero-section p {
  color: var(--text-color-light) !important; 
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Stronger shadow for readability */
}

.hero-section .btn-primary {
  background: var(--accent-color-1);
  border-color: var(--accent-color-1);
  color: var(--text-color-headings);
}
.hero-section .btn-primary:hover {
  background: #FFD25A; 
  border-color: #FFD25A;
  color: var(--text-color-headings);
  opacity: 1; 
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
#services .service-icon svg {
  width: 48px;
  height: 48px;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: transform var(--transition-speed-normal) var(--timing-function-elastic);
}
#services .card:hover .service-icon svg {
    transform: scale(1.2) rotate(10deg);
}

/*--------------------------------------------------------------
# Vision Section
--------------------------------------------------------------*/
#vision {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-color-dark); 
}
#vision img {
    border: 5px solid white;
    box-shadow: var(--card-shadow);
}

/*--------------------------------------------------------------
# History Section (Timeline)
--------------------------------------------------------------*/
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 19px; 
  height: 100%;
  width: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 60px; 
}
.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px; 
  height: 42px;
  border-radius: 50%;
  background: var(--background-color-body);
  border: 4px solid var(--primary-color-start);
  box-shadow: 0 0 0 4px var(--background-color-body), 
              inset 0 2px 0 rgba(0,0,0,.08), 
              0 3px 0 4px rgba(0,0,0,.05);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot::after { 
    content: '';
    width: 18px;
    height: 18px;
    background: var(--primary-gradient);
    border-radius: 50%;
}
.timeline-content {
  padding: 20px;
  position: relative;
}
.timeline-content::before { 
    content: "";
    position: absolute;
    top: 15px;
    right: 100%;
    border-width: 10px;
    border-style: solid;
    border-color: transparent var(--card-bg) transparent transparent;
}
.timeline-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/*--------------------------------------------------------------
# Instructors/Team Section
--------------------------------------------------------------*/
#instructors .team-card .card-image {
    width: 150px; 
    height: 150px;
    border-radius: 50%;
    margin: -75px auto 1rem auto; 
    border: 5px solid var(--text-color-light);
    position: relative; 
    z-index: 2;
    box-shadow: var(--card-shadow);
}
#instructors .team-card {
    padding-top: 75px; 
    text-align: center;
}

/*--------------------------------------------------------------
# Gallery Section (Carousel)
--------------------------------------------------------------*/
#gallery .carousel-item img {
  height: 500px; 
  object-fit: cover;
  border-radius: 10px; 
}
#gallery .carousel-caption {
  background-color: rgba(0,0,0,0.6);
  border-radius: 0 0 10px 10px;
  padding: 1rem;
  color: var(--text-color-light);
}
#gallery .carousel-caption h5 { color: var(--text-color-light); }
#gallery .carousel-caption p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-bottom: 0; }
#gallery .carousel-indicators button {
    background-color: var(--primary-color);
    width: 12px; height: 12px; border-radius: 50%; margin: 0 5px; opacity: 0.7;
}
#gallery .carousel-indicators button.active { opacity: 1; background-color: var(--accent-color-1); }

/*--------------------------------------------------------------
# External Resources Section
--------------------------------------------------------------*/
.resource-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.resource-card .btn-secondary {
    background-color: var(--primary-color-start);
    border-color: var(--primary-color-start);
    margin-top: 1rem; 
}
.resource-card .btn-secondary:hover {
    background-color: var(--primary-color-end);
    border-color: var(--primary-color-end);
}

/*--------------------------------------------------------------
# FAQ Section (Accordion)
--------------------------------------------------------------*/
.accordion-item {
  border: none;
  margin-bottom: 1rem;
}
.accordion-header .accordion-button {
  background-color: var(--card-bg);
  color: var(--text-color-headings);
  font-family: var(--font-family-headings);
  font-weight: 700;
  border-radius: 10px !important; 
  box-shadow: none; 
  padding: 1.25rem 1.5rem;
}
.accordion-header .accordion-button:not(.collapsed) {
  background: var(--primary-gradient);
  color: var(--text-color-light);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.accordion-header .accordion-button::after { 
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232A7C9A'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform var(--transition-speed-normal) ease;
}
.accordion-header .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(-180deg);
}
.accordion-collapse .accordion-body {
  padding: 1.5rem;
  background-color: #fdfdff; 
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top: 1px solid var(--border-color); 
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.bg-gradient-contact {
  background: var(--primary-gradient);
}
#contact .section-title { color: var(--text-color-light); }
#contact .section-title::after { background: var(--text-color-light); }
.contact-form-card {
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(5px);
  padding: 2.5rem;
}
.modern-input {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 12px 15px;
  transition: border-color var(--transition-speed-fast), box-shadow var(--transition-speed-fast);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.075);
}
.modern-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--rgb-primary-color-start), 0.25); 
}
#contact .form-label { font-weight: 600; color: var(--text-color-dark); }
#contact .btn-primary {
  background: var(--accent-color-1);
  border-color: var(--accent-color-1);
  color: var(--text-color-headings);
}
#contact .btn-primary:hover {
  background: #FFD25A; border-color: #FFD25A; color: var(--text-color-headings); opacity: 1;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  background-color: var(--text-color-headings); 
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem 0;
}
footer h5 { color: var(--text-color-light); margin-bottom: 1rem; }
footer p.small { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-speed-fast) ease;
  display: inline-block;
  margin-bottom: 0.3rem;
}
.footer-link:hover { color: var(--text-color-light); }
footer hr { border-top: 1px solid rgba(255,255,255,0.15); }
footer .list-unstyled li { margin-bottom: 0.5rem; }

/*--------------------------------------------------------------
# Specific Page Styles
--------------------------------------------------------------*/
.page-success-container {
  min-height: calc(100vh - var(--header-height)); 
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; background: var(--primary-gradient);
}
.page-success-container .success-card {
  background-color: var(--text-color-light); padding: 3rem; border-radius: 15px;
  box-shadow: var(--volumetric-shadow); max-width: 600px;
}
.page-success-container h1 { color: var(--primary-color-end); font-size: 3rem; margin-bottom: 1rem; }
.page-success-container p { color: var(--text-color-dark); font-size: 1.1rem; margin-bottom: 2rem; }
.page-success-container .btn {
  background-color: var(--accent-color-1); color: var(--text-color-headings); border-color: var(--accent-color-1);
}

.page-legal-content {
  padding-top: 40px; 
  padding-bottom: var(--section-padding-y);
  min-height: calc(100vh - var(--header-height));
}
.page-legal-content h1 { margin-bottom: 2rem; color: var(--text-color-headings); }
.page-legal-content h2, .page-legal-content h3 {
  margin-top: 2rem; margin-bottom: 1rem; color: var(--primary-color);
}
.page-legal-content p, .page-legal-content li { color: var(--text-color-dark); line-height: 1.8; }

/*--------------------------------------------------------------
# Animations on Scroll
--------------------------------------------------------------*/
.animate-on-scroll {
  /*opacity: 0;*/
  transform: translateY(30px);
  transition: opacity 0.6s var(--timing-function-elastic), transform 0.6s var(--timing-function-elastic);
  transition-delay: var(--delay, 0s); 
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll[data-animation="zoomIn"] { transform: scale(0.8); }
.animate-on-scroll[data-animation="zoomIn"].is-visible { transform: scale(1); }
.animate-on-scroll[data-animation="fadeInLeft"] { transform: translateX(-50px); }
.animate-on-scroll[data-animation="fadeInLeft"].is-visible { transform: translateX(0); }
.animate-on-scroll[data-animation="fadeInRight"] { transform: translateX(50px); }
.animate-on-scroll[data-animation="fadeInRight"].is-visible { transform: translateX(0); }
/*.animate-on-scroll[data-animation="bounceIn"] { transform: scale(0.5); opacity: 0; }*/
.animate-on-scroll[data-animation="bounceIn"].is-visible {
  animation: bounceInAnimation 0.75s var(--timing-function-elastic) forwards;
}

@keyframes bounceInAnimation {
  /*0% { opacity: 0; transform: scale(0.3); }*/
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.micro-interaction:active { transform: translateY(-1px) scale(0.98); }

/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  h1 { font-size: 2.4rem; }
  h2.section-title { font-size: 2rem; }
  .hero-section { min-height: auto; padding: 4rem 0; }
}

@media (max-width: 767.98px) {
  body { padding-top: calc(var(--header-height) - 10px); }
  .navbar { height: calc(var(--header-height) - 10px); }
  h1 { font-size: 2rem; }
  h2.section-title { font-size: 1.8rem; }
  .btn, button, input[type="submit"], input[type="button"] { padding: 10px 25px; font-size: 0.8rem; }
  .timeline::before { left: 10px; }
  .timeline-item { padding-left: 40px; }
  .timeline-dot { width: 30px; height: 30px; left: -5px; }
  .timeline-dot::after { width: 12px; height: 12px; }
  .timeline-content::before { border-width: 8px; top: 12px; }
  #instructors .team-card .card-image { width: 120px; height: 120px; margin-top: -60px; }
  #instructors .team-card { padding-top: 60px; }
}

@media (max-width: 575.98px) {
    .contact-form-card { padding: 1.5rem; }
    #gallery .carousel-item img { height: 300px; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section p { font-size: 1rem; }
}
.navbar-toggler{
    display: none;
}