/* Base Styles */
:root {
  --primary-color: #002244;
  --secondary-color: #0a3161;
  --accent-color: #d4af37;
  --light-color: #f8f9fa;
  --dark-color: #121212;
  --text-color: #333333;
  --border-radius: 2px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Global overflow prevention */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  overflow-x: hidden;
}

/* Prevent all images from overflowing */
img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* Prevent text from overflowing */
p, h1, h2, h3, h4, h5, h6, div {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

body {
  padding-top: 70px;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

/* Mobile specific fixes */
@media (max-width: 768px) {
  * {
    max-width: 100vw !important;
  }
  
  .container {
    padding: 0 15px;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Force all sections to single column */
  .about-content,
  .overview-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .about-text,
  .overview-text,
  .about-image,
  .overview-image {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
  
  .about-image,
  .overview-image {
    min-height: 200px;
    margin-bottom: 20px;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #001a33;
  color: white;
}

.btn-secondary {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.btn-secondary:hover {
  background-color: #c19b2e;
  color: var(--dark-color);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Enhanced Header */
header {
  background-color: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  
  
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  position: relative;
}

.logo h1 {
  font-size: 1.6rem;
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 35px;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li.active a::after {
  width: 100%;
}

nav ul li.active a {
  color: var(--primary-color);
  font-weight: 700;
}

/* Logo Styling */
.logo a {
  text-decoration: none;
}

.logo .logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-color);
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

.logo .logo-text span {
  color: var(--accent-color);
  font-weight: 900;
}

/* Hero Logo Text Styling */
.hero-logo {
  margin: 0 auto 30px;
}

.hero-logo .logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-logo .logo-text span {
  color: var(--accent-color);
  font-weight: 900;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(27, 68, 143, 0.573), rgba(77, 80, 64, 0.751)), url('/img/nyc-skyline.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--accent-color);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  font-weight: 300;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background-color: white;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid transparent;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-bottom: 3px solid var(--accent-color);
}

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

.feature-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 25px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.feature-card p {
  color: #666;
}

/* About Preview Section */
.about-preview {
  padding: 100px 0;
  background-color: var(--light-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-color);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

/* Fallback for missing images */
.about-image:empty::before,
.about-image img[src=""]:before,
.about-image img:not([src])::before {
  content: "SolidRock Capital";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

/* Overview sections */
.overview-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-color);
}

.overview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

/* Team member images */
.member-image {
  height: 280px;
  overflow: hidden;
  background-color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member.featured .member-image {
  height: 100%;
  min-height: 400px;
}

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

/* Fallback for missing team images */
.member-image:empty::before,
.member-image img[src=""]:before {
  content: "Team Member";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

/* Track Record Section */
.track-record {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  position: relative;
  overflow: hidden;
}

.track-record::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background-color: var(--accent-color);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s ease;
}

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

.stat-card:hover::before {
  transform: scaleY(1);
}

.stat-card h3 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  color: var(--accent-color);
  font-weight: 700;
  opacity: 0;
  animation: countUp 1s ease-out 0.5s forwards;
}

.stat-card p {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Header */
.page-header {
  background: linear-gradient(rgba(11, 58, 105, 0.85), rgba(6, 34, 62, 0.85)), url('/img/page-header-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-color);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* About Page */
.about-section {
  padding: 100px 0;
}

.mission-vision {
  padding: 100px 0;
  background-color: var(--light-color);
  position: relative;
}

.mission-vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color);
  opacity: 0.3;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.mission-card, .vision-card {
  padding: 50px 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover, .vision-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.mission-card {
  background-color: var(--primary-color);
  color: white;
}

.vision-card {
  background-color: white;
}

.mission-card i, .vision-card i {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: var(--accent-color);
}

.mission-card h2, .vision-card h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.mission-card p, .vision-card p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Philosophy Section */
.philosophy {
  padding: 100px 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.philosophy-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.philosophy-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 25px;
}

.philosophy-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.philosophy-card p {
  color: #666;
}

/* Team Section */
.team {
  padding: 100px 0;
  background-color: var(--light-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-member.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 2fr;
}

.member-image {
  height: 280px;
  overflow: hidden;
}

.team-member.featured .member-image {
  height: 100%;
}

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

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

.member-info {
  padding: 30px;
}

.team-member h3 {
  margin-top: 20px;
  color: var(--primary-color);
  font-size: 1.6rem;
}

.team-member .position {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.team-member .bio {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #555;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

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

/* Portfolio/Grants Page */
.portfolio-overview, .portfolio-sectors, .featured-investments {
  padding: 100px 0;
}

.portfolio-overview {
  text-align: center;
}

.portfolio-overview p {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.portfolio-sectors {
  background-color: var(--light-color);
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.sector-card {
  background-color: white;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sector-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.sector-icon {
  width: 80px;
  height: 80px;
  background-color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: background-color 0.3s ease;
}

.sector-card:hover .sector-icon {
  background-color: var(--primary-color);
}

.sector-card:hover .sector-icon i {
  color: white;
}

.sector-icon i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.sector-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.6rem;
}

.sector-allocation {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  margin-top: 20px;
  font-weight: 600;
}

.investment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.investment-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.investment-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.investment-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.investment-content {
  padding: 25px;
}

.investment-card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.6rem;
}

.investment-card .industry {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.investment-card .description {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #555;
}

.investment-details {
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
}

.investment-return {
  color: #28a745;
  font-weight: 600;
}

/* Contact Page */
.contact-info, .contact-form {
  padding: 100px 0;
}

.contact-form {
  background-color: var(--light-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-card {
  background-color: white;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 25px;
}

.contact-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary-color);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 34, 68, 0.1);
}

.map-container {
  height: 450px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-top: 40px;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Internship Page */
.internship-overview, .program-details, .application, .testimonials, .application-form {
  padding: 100px 0;
}

.application-form {
  background-color: var(--light-color);
}

.google-form-container {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-top: 30px;
}

.google-form-container iframe {
  display: block;
  border: none;
}

.overview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.overview-text h2 {
  margin-bottom: 20px;
}

.overview-text p {
  margin-bottom: 15px;
}

.program-details {
  background-color: var(--light-color);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.detail-card {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.detail-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.detail-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.process-steps {
  margin-top: 40px;
}

.step {
  display: flex;
  margin-bottom: 30px;
}

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

.step-content h3 {
  margin-bottom: 10px;
}

.application-cta {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
}

.application-cta h3 {
  margin-bottom: 10px;
}

.application-cta p {
  margin-bottom: 20px;
}

.testimonials {
  background-color: var(--light-color);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
}

.testimonial-image {
  height: 200px;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.testimonial-content p {
  margin-bottom: 20px;
  font-style: italic;
  flex-grow: 1;
}

.testimonial-content h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.testimonial-info {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: #999;
  padding: 80px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo h2 {
  margin-bottom: 20px;
  color: white;
  font-weight: 700;
  font-size: 1.8rem;
}

.footer-logo p {
  color: #999;
  font-size: 0.95rem;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
  margin-bottom: 25px;
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
}

.footer-links h3::after, .footer-contact h3::after, .footer-social h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: #999;
  transition: var(--transition);
  display: block;
  margin-bottom: 12px;
  font-family: 'Lato', sans-serif;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

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

.footer-contact p i {
  color: var(--accent-color);
  margin-right: 15px;
  font-size: 1.1rem;
  margin-top: 5px;
}

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

.footer-social .social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  transition: var(--transition);
}

.footer-social .social-icons a:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

/* Team Logo */
.team-logo {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 150px;
}

.team-logo img {
  width: 100%;
  height: auto;
}

.section-title .team-logo {
  margin-top: 20px;
}

/* Mobile Responsiveness - Fix grid layouts */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    display: none !important;
    z-index: 999 !important;
  }

  nav.active {
    display: block !important;
  }

  nav ul {
    flex-direction: column !important;
    padding: 20px 0 !important;
    
  }

  nav ul li {
    margin: 0 !important;
    text-align: center !important;
  }

  nav ul li a {
    display: block !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid #eee !important;
  }

  .container {
    padding: 20px 15px;
    max-width: 100%;
  }

  .logo .logo-text {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-logo .logo-text {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  /* Force single column layout on mobile */
  .about-content,
  .overview-content {
    display: block !important;
    width: 100%;
  }

  .about-content > *,
  .overview-content > * {
    width: 100%;
    margin-bottom: 30px;
  }
  
  .about-image,
  .overview-image {
    width: 100%;
    min-height: 250px;
    margin-bottom: 30px;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .team-member.featured {
    display: block !important;
    width: 100%;
  }

  .team-member.featured .member-image {
    width: 100%;
    min-height: 300px;
    margin-bottom: 20px;
  }

  .team-member.featured .member-info {
    width: 100%;
  }

  /* All grid layouts to single column */
  .feature-grid,
  .philosophy-grid,
  .team-grid,
  .sector-grid,
  .investment-grid,
  .contact-grid,
  .details-grid,
  .testimonial-grid {
    display: block !important;
    width: 100%;
  }

  .feature-grid > *,
  .philosophy-grid > *,
  .team-grid > *,
  .sector-grid > *,
  .investment-grid > *,
  .contact-grid > *,
  .details-grid > *,
  .testimonial-grid > * {
    width: 100%;
    margin-bottom: 20px;
  }

  .stats-grid,
  .portfolio-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-card h3 {
    font-size: 2.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-social .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-logo .logo-text {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.85rem;
  }

  .stats-grid,
  .portfolio-stats {
    grid-template-columns: 1fr;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  .feature-card,
  .philosophy-card,
  .sector-card,
  .detail-card,
  .contact-card {
    padding: 30px 20px;
  }

  .mission-card,
  .vision-card {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .about-content,
  .overview-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-image,
  .overview-image {
    min-height: 250px;
    order: -1; /* Move images above text on mobile */
    
  }
  
  .team-member.featured {
    grid-template-columns: 1fr;
  }
  
  .team-member.featured .member-image {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .about-image,
  .overview-image {
    min-height: 200px;
  }
  
  .member-image {
    height: 250px;
  }
  
  .team-member.featured .member-image {
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  .about-content,
  .overview-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-image,
  .overview-image {
    min-height: 250px;
    order: -1; /* Move images above text on mobile */
  }
  
  .team-member.featured {
    grid-template-columns: 1fr;
  }
  
  .team-member.featured .member-image {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .about-image,
  .overview-image {
    min-height: 200px;
  }
  
  .member-image {
    height: 250px;
  }
  
  .team-member.featured .member-image {
    min-height: 250px;
  }
}
