html {
  scroll-behavior: smooth;
}

body,
html {
  font-family: "Montserrat", sans-serif;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  color: #777;
  font-weight: 400;
  width: 100% !important;
  height: 100% !important;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
}

h2 {
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 36px;
  color: #333;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

h4 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

h5 {
  text-transform: uppercase;
  font-weight: 700;
  line-height: 20px;
}

p {
  font-size: 15px;
}

p.intro {
  margin: 12px 0 0;
  line-height: 24px;
}

a {
  color: #608dfd;
  font-weight: 400;
}

a:hover,
a:focus {
  text-decoration: none;
  color: #608dfd;
}

ul,
ol {
  list-style: none;
}

ul,
ol {
  padding: 0;
  webkit-padding: 0;
  moz-padding: 0;
}

hr {
  height: 2px;
  width: 70px;
  text-align: center;
  position: relative;
  background: #1e7a46;
  margin-bottom: 20px;
  border: 0;
}

/* Navigation */
#menu {
  padding: 15px;
  transition: all 0.8s;
  width: 100%;
}

/* Smooth scroll targets: offset for fixed navbar */
#about,
#portfolio,
#presidents,
#team,
#contact,
#events {
  scroll-margin-top: 90px;
}

#menu.navbar-default {
  background-color: #B0DE9A;
  border-color: rgba(231, 231, 231, 0);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

#menu a.navbar-brand {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

#menu.navbar-default .navbar-nav>li>a {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  color: #555;
  font-size: 15px;
  font-weight: 400;
  padding: 8px 2px;
  border-radius: 0;
  margin: 9px 20px 0;
}

#menu.navbar-default .navbar-nav>li>a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #28a745 0%, #218838 100%);
  content: "";
  transition: width 0.2s;
}

#menu.navbar-default .navbar-nav>li>a:hover:after {
  width: 100%;
}

#menu.navbar-default .navbar-nav>li>a.nav-social {
  margin-left: 8px;
  padding: 8px 6px;
}
#menu.navbar-default .navbar-nav>li>a.nav-social:after {
  display: none;
}
#menu.navbar-default .navbar-nav>li>a.nav-social:hover {
  color: #333;
}
#menu.navbar-default .navbar-nav>li>a.nav-social i {
  font-size: 18px;
}
#menu.navbar-default .navbar-nav>li>a.nav-social .instagram-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
  background-color: transparent;
}

.navbar-default .navbar-nav>.active>a:after,
.navbar-default .navbar-nav>.active>a:hover:after,
.navbar-default .navbar-nav>.active>a:focus:after {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -1px !important;
  width: 100% !important;
  height: 2px !important;
  background: linear-gradient(to right, #28a745 0%, #218838 100%) !important;
  content: "" !important;
  transition: width 0.2s !important;
}

.navbar-toggle {
  border-radius: 0;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #fff;
  border-color: #608dfd;
}

.navbar-default .navbar-toggle:hover>.icon-bar {
  background-color: #608dfd;
}

.section-title {
  margin-bottom: 70px;
}

.section-title h2 {
  position: relative;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.section-title h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #28a745 0%, #218838 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}

.section-title p {
  font-size: 18px;
}

.btn-custom {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  color: #fff;
  background-color: #28a745;
  background-image: linear-gradient(to right, #28a745 0%, #218838 100%);
  padding: 14px 34px;
  letter-spacing: 1px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.5s linear;
  border: 0;
}

.btn-custom:hover,
.btn-custom:focus,
.btn-custom.focus,
.btn-custom:active,
.btn-custom.active {
  color: #fff;
  background-image: none;
  background-color: #218838;
}

.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

a:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: none;
  outline-offset: none;
}

/* Header Section */
.intro {
  width: 100%;
  height: 100%;
  padding: 0;
  background: url(../img/intro-bg.jpg) center center no-repeat;
  background-color: #e5e5e5;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}

.intro h1 {
  font-family: "Montserrat", sans-serif;
  color: black;
  font-size: 82px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
}

.intro h1 span {
  font-weight: 800;
  color: #5ca9fb;
}

.intro p {
  color: grey;
  font-size: 22px;
  font-weight: 300;
  line-height: 30px;
  margin: 0 auto;
  margin-bottom: 60px;
}

header .intro-text {
  padding-top: 250px;
  padding-bottom: 70px;
  text-align: center;
}

/* Features Section */
#features {
  background: #f6f6f6;
  padding: 100px 0;
}

#features i.fa {
  font-size: 38px;
  margin-bottom: 20px;
  transition: all 0.5s;
  color: #fff;
  width: 100px;
  height: 100px;
  padding: 30px 0;
  border-radius: 50%;
  background: linear-gradient(to right, #28a745 0%, #218838 100%);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
}

/* About Section */
#about {
  padding: 100px 0;
  min-height: 100vh;
  background: url(../img/mission.jpg) no-repeat center center;
  background-size: cover;
}

#about h3 {
  font-size: 22px;
  margin: 0 0 20px;
}

#about h2 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

#about h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #28a745 0%, #218838 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
}

#about .about-text li {
  margin-bottom: 6px;
  margin-left: 6px;
  list-style: none;
  padding: 0;
}

#about .about-text li:before {
  content: "\f00c";
  font-family: "FontAwesome";
  color: #5ca9fb;
  font-size: 17px;
  font-weight: 300;
  padding-right: 8px;
}

#about img {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-top: 10px;
  background: #fff;
  border-right: 0;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.06);
}

#about p {
  line-height: 30px;
  margin: 30px 0;
  font-size: 17px;
  color: black;
}

/* Services Section */
#services {
  padding: 100px 0;
  background: linear-gradient(to right, #28a745 0%, #218838 100%);
  color: #fff;
}

#services .service-desc {
  margin: 10px 10px 20px;
}

#services h2 {
  color: #fff;
}

#services .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}

#services i.fa {
  font-size: 42px;
  width: 120px;
  height: 120px;
  padding: 40px 0;
  background: linear-gradient(to right, #28a745 0%, #218838 100%);
  border-radius: 50%;
  color: #fff;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
}

#services h3 {
  font-weight: 500;
  padding: 5px 0;
  color: #fff;
}

#services p {
  color: rgba(255, 255, 255, 0.75);
}

#services .service-desc {
  margin-bottom: 40px;
}

/* Portfolio Section */
#portfolio {
  padding: 100px 0;
}

.portfolio-item {
  margin: 1px -15px 0 -14px;
  padding: 0;
}

.portfolio-item .hover-bg {
  overflow: hidden;
  position: relative;
  margin: 0;
}

.hover-bg .hover-text {
  position: absolute;
  text-align: center;
  margin: 0 auto;
  color: #fff;
  background: linear-gradient(to right, #28a745 0%, #218838 100%);
  padding: 30% 0 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.5s;
}

.hover-bg .hover-text>h4 {
  opacity: 0;
  color: #fff;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  transition: all 0.3s;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
}

.hover-bg:hover .hover-text>h4 {
  opacity: 1;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.hover-bg:hover .hover-text {
  opacity: 1;
}

/* Testimonials Section */
#testimonials {
  padding: 100px 0;
  background: #f6f6f6;
}

#testimonials i {
  color: #e6e6e6;
  font-size: 32px;
  margin-bottom: 20px;
}

.testimonial {
  position: relative;
  padding: 20px;
}

.testimonial-image {
  float: left;
  margin-right: 15px;
}

.testimonial-image,
.testimonial-image img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.testimonial-content {
  position: relative;
  overflow: hidden;
}

.testimonial-content p {
  margin-bottom: 0;
  font-size: 14px;
  font-style: italic;
}

.testimonial-meta {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
}

/* Team Section */
#team {
  padding: 100px 0;
  border-color: white;
}

#team h4 {
  margin: 5px 0;
}

#team .team-img,
#presidents .team-img {
  border: none !important;
  box-shadow: none !important;
}

#team .team-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

#presidents .team-img {
  margin-left: 0;
  height: 350px;
  width: 100%;
  object-fit: cover;
}

#team .thumbnail,
#presidents .thumbnail {
  background: transparent;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
}

#team .thumbnail {
  border-color: transparent;
}

#team button[type="button"]:not(.team-carousel-btn),
#presidents button,
#presidents button[type="button"] {
  border: none !important;
  background: transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: none !important;
  outline: none;
}

#team button[type="button"]:not(.team-carousel-btn):focus,
#presidents button[type="button"]:focus {
  outline: none;
}

/* Team carousel */
.team-carousel-wrapper {
  position: relative;
  padding: 0 52px;
  margin-bottom: 24px;
  min-height: 280px;
  overflow: visible;
}

.team-carousel-viewport {
  overflow: hidden;
  width: 100%;
  min-height: 260px;
  position: relative;
  z-index: 0;
}

.team-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.35s ease-out;
  min-height: 260px;
}

.team-carousel-card {
  flex: 0 0 auto;
  padding: 0 6px;
  box-sizing: border-box;
}

.team-carousel-card .thumbnail {
  width: 100%;
  margin-bottom: 0;
}

.team-carousel-card .team-img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover;
  display: block;
}

/* Vertically center buttons in carousel (prioritize laptop); 50% of wrapper = center of viewport */
.team-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #0d0d0d;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.team-carousel-btn span {
  display: block;
  line-height: 0.85;
  text-align: center;
}

.team-carousel-btn:hover:not(:disabled) {
  background: #000;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.team-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #333;
}

.team-carousel-btn-prev {
  left: 0;
}

.team-carousel-btn-next {
  right: 0;
}

#team .team-carousel-btn {
  z-index: 20;
  background: #0d0d0d;
  color: #fff;
}

#team .team-carousel-btn:hover:not(:disabled) {
  background: #000;
}

.team-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.team-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.team-carousel-dot:hover,
.team-carousel-dot.active {
  background: #28a745;
}

.team-popup-content {
  padding: 16px;
  max-width: 400px;
}

.team-popup-content h3 {
  margin-top: 0;
}

@media (max-width: 575px) {
  .team-carousel-wrapper {
    padding: 0 44px;
    min-height: 320px;
  }

  .team-carousel-viewport {
    min-height: 300px;
  }

  .team-carousel-track {
    min-height: 300px;
  }

  .team-carousel-card .team-img {
    height: 240px !important;
  }

  .team-carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .team-carousel-btn-prev {
    left: 6px;
  }

  .team-carousel-btn-next {
    right: 6px;
  }
}

#team .thumbnail .caption {
  padding: 10px 0 0;
  color: #888;
}

.blurb {
  width: 40vw;
  margin-top: -5rem;
}

/* Contact Section */
#contact {
  padding: 100px 50px;
  min-height: 100vh;
  background-size: cover;
  color: black;
}

#contact .section-title {
  margin-bottom: 40px;
}

#contact .section-title p {
  font-size: 26px;
}

#contact h2 {
  color: black;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

#contact .section-title h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #28a745 0%, #218838 100%);
  height: 4px;
  width: 200px;
  bottom: 0;
  left: 30px;
}

.contact-info p {
  text-align: left;
  font-size: 23px;
  display: inline;
  word-wrap: break-word;
}

#contact h3 {
  color: black;
  margin-top: 80px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  text-align: left;
  font-weight: 400;
}

#contact form {
  padding-top: 20px;
}

#contact .text-danger {
  color: #cc0033;
  text-align: left;
}

#contact .btn-custom {
  margin: 30px 0;
  background: transparent;
  border: 2px solid black;
}

#contact .btn-custom:hover {
  color: #fff;
  background: black;
}

#contact .campuspulse {
  width: 40vw;
  max-width: 300px;
  height: auto;
  background-color: transparent;
  border: 0;
  border-radius: 30%;
  transition: background-color 0.3s ease-in-out;
}

#contact .campuspulse:hover {
  background-color: rgb(238, 235, 235);
}

label {
  font-size: 28px;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  float: left;
}

#contact .form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 1.42857143;
  color: #444;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ddd;
  border-radius: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}

#contact .form-control:focus {
  border-color: #999;
  outline: 0;
  -webkit-box-shadow: transparent;
  box-shadow: transparent;
}

.form-control::-webkit-input-placeholder {
  color: #777;
}

.form-control:-moz-placeholder {
  color: #777;
}

.form-control::-moz-placeholder {
  color: #777;
}

.form-control:-ms-input-placeholder {
  color: #777;
}

#contact .contact-item {
  margin: 20px 0;
  text-align: left;
}

#contact .contact-item span {
  color: black;
  margin-bottom: 10px;
  display: block;
  text-align: left;
}

#contact .contact-item i.fa {
  margin-left: 10px;
  text-align: left;
}

#contact .social {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 50px;
  margin-top: 50px;
  text-align: center;
}

#contact .social ul li {
  display: inline-block;
  margin: 0 20px;
}

#contact .social i.fa {
  font-size: 22px;
  width: 48px;
  height: 48px;
  padding: 12px 0;
  border: 2px solid black;
  color: black;
  border-radius: 50%;
  transition: all 0.3s;
}

#contact .social i.fa:hover {
  color: #608dfd;
  background: #fff;
}

/* Footer Section*/
#footer {
  background: #f6f6f6;
  padding: 30px 0;
}

#footer p {
  color: #888;
  font-size: 14px;
}

#footer a {
  color: #608dfd;
}

#footer a:hover {
  border-bottom: 2px solid #608dfd;
}

/* Popup styling */
@keyframes anvil {
  0% {
    transform: scale(1) translateY(0px);
    opacity: 0;
    box-shadow: 0 0 0 rgba(241, 241, 241, 0);
  }

  1% {
    transform: scale(0.96) translateY(10px);
    opacity: 0;
    box-shadow: 0 0 0 rgba(241, 241, 241, 0);
  }

  100% {
    transform: scale(1) translateY(0px);
    opacity: 1;
    box-shadow: 0 0 500px rgba(241, 241, 241, 0);
  }
}

.popup-content {
  margin: auto;
  background: rgb(255, 255, 255);
  width: 50%;
  padding: 20px;
  -webkit-animation: anvil 0.3s cubic-bezier(0.38, 0.1, 0.36, 0.9) forwards;
  color: black;
}

.popup-arrow {
  color: rgb(255, 255, 255);
}

[role='tooltip'].popup-content {
  width: 200px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 0px 3px;
}

.popup-overlay {
  background: rgba(0, 0, 0, 0.5);
}

[data-popup='tooltip'].popup-overlay {
  background: transparent;
}

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

/* Tablets and Small Laptops (max-width: 991px) */
@media (max-width: 991px) {

  /* Navigation adjustments */
  #menu.navbar-default .navbar-nav>li>a {
    margin: 5px 10px;
    font-size: 14px;
  }

  /* Header */
  .intro h1 {
    font-size: 60px;
  }

  .intro p {
    font-size: 18px;
    padding: 0 20px;
  }

  header .intro-text {
    padding-top: 180px;
    padding-bottom: 50px;
  }

  /* General heading adjustments */
  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 18px;
  }

  /* About section */
  #about {
    padding: 80px 0;
    height: auto;
    min-height: auto;
  }

  #about img {
    margin: 30px auto;
    display: block;
  }

  .blurb {
    width: 80%;
    margin-top: 2rem;
  }

  /* Contact section */
  #contact {
    padding: 80px 30px;
    height: auto;
  }

  #contact .campuspulse {
    width: 60vw;
    max-width: 250px;
  }

  label {
    font-size: 22px;
  }

  /* Sections padding */
  #features,
  #services,
  #portfolio,
  #testimonials,
  #team {
    padding: 80px 0;
  }
}

/* Tablets Portrait (max-width: 768px) */
@media (max-width: 768px) {

  /* Navigation - Mobile menu */
  #menu {
    padding: 10px 15px;
  }

  #menu.navbar-default .navbar-nav {
    margin-top: 0;
  }

  #menu.navbar-default .navbar-nav>li>a {
    margin: 10px 0;
    padding: 10px 15px;
    text-align: left;
  }

  .navbar-collapse {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 10px;
  }

  /* Header */
  .intro h1 {
    font-size: 48px;
    line-height: 1.2;
  }

  .intro p {
    font-size: 16px;
    line-height: 26px;
    padding: 0 15px;
  }

  header .intro-text {
    padding-top: 150px;
    padding-bottom: 40px;
  }

  /* General headings */
  h2 {
    font-size: 28px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title p {
    font-size: 16px;
    padding: 0 15px;
  }

  /* About section */
  #about {
    padding: 60px 20px;
  }

  #about img {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
  }

  #about p {
    font-size: 15px;
    line-height: 26px;
  }

  /* Services */
  #services i.fa {
    font-size: 36px;
    width: 100px;
    height: 100px;
    padding: 32px 0;
  }

  /* Team */
  #team .team-img,
  #presidents .team-img {
    height: auto;
    max-height: 250px;
  }

  .blurb {
    width: 90%;
    margin-top: 1rem;
  }

  /* Contact section */
  #contact {
    padding: 60px 20px;
  }

  #contact h2 {
    font-size: 28px;
  }

  #contact h3 {
    margin-top: 40px;
    font-size: 20px;
  }

  #contact .section-title p {
    font-size: 20px;
  }

  .contact-info p {
    font-size: 18px;
  }

  #contact .campuspulse {
    width: 70vw;
    max-width: 200px;
  }

  #contact .section-title h2::after {
    width: 150px;
    left: 0;
  }

  label {
    font-size: 18px;
  }

  /* Social icons */
  #contact .social ul li {
    margin: 0 10px;
  }

  #contact .social i.fa {
    font-size: 20px;
    width: 42px;
    height: 42px;
    padding: 10px 0;
  }

  /* Popup */
  .popup-content {
    width: 85%;
    padding: 20px;
  }

  /* Sections padding */
  #features,
  #services,
  #portfolio,
  #testimonials,
  #team {
    padding: 60px 20px;
  }
}

/* Mobile Landscape and Small Tablets (max-width: 640px) */
@media (max-width: 640px) {

  .intro h1 {
    font-size: 38px;
  }

  .intro p {
    font-size: 15px;
    margin-bottom: 40px;
  }

  header .intro-text {
    padding-top: 120px;
  }

  /* Buttons */
  .btn-custom {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Features icons */
  #features i.fa {
    font-size: 32px;
    width: 80px;
    height: 80px;
    padding: 24px 0;
  }

  /* Services icons */
  #services i.fa {
    font-size: 32px;
    width: 90px;
    height: 90px;
    padding: 28px 0;
  }

  /* Team images */
  #team .team-img,
  #presidents .team-img {
    max-height: 200px;
  }
}

/* Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {

  /* Navigation brand */
  #menu a.navbar-brand {
    font-size: 20px;
  }

  /* Header */
  .intro h1 {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .intro p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 30px;
  }

  header .intro-text {
    padding-top: 100px;
    padding-bottom: 30px;
  }

  /* General headings */
  h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  h3 {
    font-size: 16px;
  }

  h4 {
    font-size: 15px;
  }

  p {
    font-size: 14px;
  }

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

  .section-title p {
    font-size: 14px;
  }

  /* About section */
  #about {
    padding: 40px 15px;
  }

  #about h3 {
    font-size: 18px;
  }

  #about p {
    font-size: 14px;
    line-height: 24px;
    margin: 20px 0;
  }

  #about img {
    max-width: 100%;
  }

  /* Features */
  #features i.fa {
    font-size: 28px;
    width: 70px;
    height: 70px;
    padding: 20px 0;
  }

  /* Services */
  #services i.fa {
    font-size: 28px;
    width: 80px;
    height: 80px;
    padding: 24px 0;
  }

  #services .service-desc {
    margin: 10px 0 30px;
  }

  /* Portfolio */
  .portfolio-item {
    margin: 10px 0;
  }

  /* Testimonials */
  .testimonial-image,
  .testimonial-image img {
    width: 50px;
    height: 50px;
  }

  .testimonial-content p {
    font-size: 13px;
  }

  .testimonial-meta {
    font-size: 13px;
  }

  /* Team */
  .blurb {
    width: 95%;
    margin-top: 0.5rem;
    font-size: 14px;
  }

  #team .team-img,
  #presidents .team-img {
    max-height: 180px;
  }

  /* Contact */
  #contact {
    padding: 40px 15px;
  }

  #contact h2 {
    font-size: 24px;
  }

  #contact h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
  }

  #contact .section-title p {
    font-size: 16px;
  }

  .contact-info p {
    font-size: 15px;
  }

  #contact .campuspulse {
    width: 80vw;
    max-width: 180px;
  }

  #contact .section-title h2::after {
    width: 100px;
  }

  label {
    font-size: 16px;
  }

  #contact .form-control {
    font-size: 14px;
    padding: 8px 10px;
  }

  #contact .btn-custom {
    margin: 20px 0;
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Social icons */
  #contact .social {
    padding-top: 30px;
    margin-top: 30px;
  }

  #contact .social ul li {
    margin: 0 8px;
  }

  #contact .social i.fa {
    font-size: 18px;
    width: 38px;
    height: 38px;
    padding: 9px 0;
  }

  /* Popup */
  .popup-content {
    width: 95%;
    padding: 15px;
  }

  /* Sections padding */
  #features,
  #services,
  #portfolio,
  #testimonials,
  #team {
    padding: 40px 15px;
  }

  /* Buttons */
  .btn-custom {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Extra Small Mobile (max-width: 375px) */
@media (max-width: 375px) {

  .intro h1 {
    font-size: 28px;
  }

  .intro p {
    font-size: 13px;
  }

  h2 {
    font-size: 22px;
  }

  #contact h3 {
    font-size: 16px;
  }

  label {
    font-size: 14px;
  }

  .contact-info p {
    font-size: 14px;
  }

  #contact .social i.fa {
    font-size: 16px;
    width: 34px;
    height: 34px;
  }
}

/* Landscape orientation fixes */
@media (max-height: 500px) and (orientation: landscape) {

  header .intro-text {
    padding-top: 80px;
    padding-bottom: 20px;
  }

  .intro h1 {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .intro p {
    margin-bottom: 20px;
  }

  #about,
  #contact {
    min-height: auto;
    height: auto;
  }
}

/* ============================================
   MOBILE IMAGE FIX - Add to style.css
   ============================================ */

/* About Section Image Fixes */
#about img {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 10px auto;
  display: block;
  background: #fff;
  border-right: 0;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.06);
}

#about .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Gallery/Portfolio Image Fixes */
#portfolio img,
.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.portfolio-item {
  margin-bottom: 15px;
}

/* Team/Presidents Image Fixes */
#team .team-img,
#presidents .team-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  border: none !important;
  box-shadow: none !important;
}

#team .thumbnail,
#presidents .thumbnail {
  width: 100%;
  margin-bottom: 20px;
  border: none !important;
  box-shadow: none !important;
}

/* Testimonial Images */
.testimonial-image img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================
   MOBILE-SPECIFIC IMAGE FIXES
   ============================================ */

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {

  /* About Section */
  #about .row {
    flex-direction: column;
  }

  #about .col-xs-12.col-md-6 {
    width: 100%;
    padding: 0 15px;
  }

  #about img {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    display: block;
  }

  /* About text should come BEFORE image on mobile */
  #about .about-text {
    order: 1;
  }

  #about .about-img {
    order: 2;
  }

  /* Gallery - 2 columns on tablet */
  .portfolio-item {
    width: 50%;
    float: left;
    padding: 5px;
  }

  .portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  /* Team - 2 columns on tablet */
  #team .col-md-3,
  #presidents .col-md-3 {
    width: 50%;
    float: left;
    margin-bottom: 30px;
  }

  #team .team-img,
  #presidents .team-img {
    height: 220px;
  }
}

/* Mobile Portrait (max-width: 480px) */
@media (max-width: 480px) {

  /* About Section - Full width, proper spacing */
  #about {
    padding: 60px 15px;
  }

  #about img {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
  }

  #about .about-text {
    margin-bottom: 30px;
  }

  /* Gallery - Single column on phone */
  .portfolio-item {
    width: 100%;
    float: none;
    margin-bottom: 15px;
    padding: 0;
  }

  .portfolio-item img {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 300px;
    object-fit: cover;
  }

  /* Team - Single column on phone */
  #team .col-md-3,
  #presidents .col-md-3,
  #team .col-sm-6,
  #presidents .col-sm-6 {
    width: 100%;
    float: none;
    margin-bottom: 30px;
  }

  #team .team-img,
  #presidents .team-img {
    height: auto;
    max-height: 300px;
    width: 100%;
  }

  /* Testimonial images smaller on mobile */
  .testimonial-image,
  .testimonial-image img {
    width: 50px;
    height: 50px;
  }
}

/* Extra Small Mobile (max-width: 375px) */
@media (max-width: 375px) {

  #about img {
    margin: 15px 0;
  }

  .portfolio-item img {
    min-height: 180px;
    max-height: 250px;
  }

  #team .team-img,
  #presidents .team-img {
    max-height: 250px;
  }
}

/* ============================================
   BOOTSTRAP COLUMN OVERRIDES FOR MOBILE
   ============================================ */

@media (max-width: 768px) {

  /* Force Bootstrap columns to stack properly */
  .col-xs-12,
  .col-sm-6,
  .col-md-3,
  .col-md-4,
  .col-md-6 {
    width: 100%;
    float: none;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Container padding */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .row {
    margin-left: -15px;
    margin-right: -15px;
  }
}

/* Ensure all images are responsive by default */
img {
  max-width: 100%;
  height: auto;
}

#presidents .section-title {
  width: 100%;
  margin-bottom: 40px;
}

#presidents .row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  clear: both;
  width: 100%;
}

#presidents .col-md-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 50px;
}

#presidents .team-img {
  width: 250px !important;
  height: 300px !important;
  object-fit: cover;
}

#presidents .caption {
  text-align: center;
  width: 100%;
}