* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #F0F8FF;
}

/* Header Styles */
.header {
  background-color: #004C99;
  color: white;
  padding: 0.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: 80px;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s ease;
}

.logo-container:hover {
    opacity: 0.8;
    /* cursor: pointer; */
}

/* SVG Logo */
.logo-svg {
    height: 100px;
}

/* Logo Text */
.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0.2rem 0.5rem;
    }

    .logo-container {
        gap: 0.2rem;
    }

    .logo-svg {
        height: 70px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
}

.header-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header-btn {
  background-color: #D4AF37;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

/* Email Button */
.email-btn {
  background-color: #D4AF37;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.email-btn:hover {
  background-color: #b8941f;
}

/* Menu Button */
.menu-btn {
  background-color: #D4AF37;
  color: white;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 15%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.menu-btn:hover {
  background-color: #b8941f;
}

/* Navigation Menu */
.nav-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: #004C99;
  transition: right 0.3s ease;
  z-index: 1001;
  padding: 2rem;
}

.nav-menu.active {
  right: 0;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

.nav-menu ul {
  list-style: none;
  margin-top: 3rem;
}

.nav-menu li {
  margin: 1rem 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
}

.nav-menu a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background: no-repeat url('../img/cover/cabin_window.jpg') center/140%;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

/* Main Content */
main {
  padding: 2rem;
  min-height: calc(100vh - 160px);
}

.hero-main {
	padding: 1rem;
}

/* Section Styles */
.section {
  margin: 3rem 0;
}

h2 {
  background-color: #004C99;
  color: white;
  padding: 0.2rem 0.8rem;
  /* margin-bottom: 1rem; */
  display: inline-block;
  width: auto;
  font-weight:700;
  letter-spacing: 0.08rem;
}

/* What's New Blog Section */
.blog-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    &::-webkit-scrollbar {
        display: none;
    }
    
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.slider-container {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding: 0 1rem;
}

/* Blog in Desktop */
@media (min-width: 769px) {
    .blog-slider {
        display: flex;
        overflow-x: visible;
    }
    
    .slider-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .blog-card {
        flex: 1;
    }
}

/* Learn More Button */
.learn-more-btn {
  display: inline-block;
  background-color: #D4AF37;
  color: white;
  padding: 0.3rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 0rem;
}

.learn-more-btn:hover {
  background-color: #bb9413;
}

/* Clients Section */
.clients-container {
    overflow: hidden;
    position: relative;
    padding: 0 0;
    background: white;
}

.clients-scroll {
    display: flex;
    gap: 2rem;
    animation: scroll-loop 35s linear infinite;
    width: max-content;
}

.clients-scroll img {
    width: 150px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    transition: filter 0.3s ease;
}

@keyframes scroll-loop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.clients-container:hover .clients-scroll {
    animation-play-state: paused;
}

/* Milestone Timeline */
.milestone-section {
    margin: 4rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 70px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #004C99;
}

.milestone {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
}

.milestone-circle {
    background-color: #D4AF37;
    color: white;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.6rem;
    line-height:1.2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-right: 2rem;
}

.milestone-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.milestone-content h3 {
    color: #004C99;
    margin-bottom: 0.5rem;
}

.milestone-content p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
	.timeline {
			padding-left: 1rem;
	}
	
	.timeline::before {
			left: 55px;
	}
	
	.milestone-circle {
			width: 80px;
			height: 80px;
			font-size: 1.5rem;
			margin-right: 1rem;
			line-height:1.2rem
	}

}

/* Cover Section */
.cover {
  height: 40vh;
  display: flex;
  align-items: flex-end; /* This keeps it at bottom */
  justify-content: center; /* Add this line to center horizontally */
  color: white;
  padding: 1rem;
  margin-top: 80px;
  text-align: center; /* Add this for extra centering */
  margin: 3rem 0; 
}

.cover-title h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Blog Cards */
.blog-card {
    border-bottom: 3px solid #004C99;
    padding-bottom: 1.5rem;
    background: white;
    flex: 0 0 280px; /* Don't grow, don't shrink, fixed width */
    scroll-snap-align: start;
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0px;
    margin-bottom: 1rem;
}

.blog-title {
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #004C99;
}

.blog-brief {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blog-date {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Service Cards */
.service-card {
    text-decoration: none;
    color: inherit;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-image {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 76, 153, 0.6);
}

.service-icon {
    position: relative;
    width: 80px;
    height: 80px;
    z-index: 2;
}

.service-content {
	margin-top: 0;
  padding: 1.5rem;
  text-align: center;
}

.service-content h3 {
    color: #004C99;
    margin: 0;
    font-size: 1.3rem;
}

/* Service Detail Pages */
.service-detail {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.service-content {
    max-width: 800px;
    margin: 2rem auto 0 auto;
}

.service-detail h1 {
    color: #004C99;
    margin-bottom: 2rem;
    text-align: center;
}

/* Services List */

.services-list ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.services-list li {
    padding: 1rem 1rem 1rem 2.5rem;
    margin-bottom: 0.8rem;
    background: white;
    border-left: 4px solid #D4AF37;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 1.05rem;
    line-height: 1.5;
    color: #444;
}

.services-list li::before {
    content: "✓";
    position: absolute;
    left: 0.8rem;
    color: #004C99;
    font-weight: bold;
    font-size: 1.1rem;
}

.services-list li:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.service-btn-container {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-detail {
        padding: 1rem;
    }
    
    .services-list li {
        padding: 0.8rem 0.8rem 0.8rem 2.2rem;
        font-size: 1rem;
    }
}

/* Different Background Images */
.bkg-audit {
    background: url('../img/services/bkg-audit.jpg') center/cover;
}

.bkg-flying {
    background: url('../img/services/bkg-flying.jpg') center/cover;
}

.bkg-crew {
    background: url('../img/services/bkg-crew.jpg') center/cover;
}

.bkg-news {
  background: url('../img/cover/news.jpg') center/cover;
}

.bkg-services {
  background: url('../img/cover/services.jpg') center/cover;
}

.bkg-team {
  background: url('../img/cover/team.jpg') center/cover;;
}

/* Team Introduction */
.team-intro {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.team-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

/* Team Members */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-photo {
  width: 150px;
  height: 170px;
  object-fit: cover;
  margin: 0 auto 1.5rem auto;
  /* border-radius: 50%;
  border: 4px solid #D4AF37; */
}

.team-member h3 {
  color: #004C99;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.member-title {
  color: #D4AF37;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-grid {
      grid-template-columns: 1fr;
      max-width: 400px;
    }
  
    .member-photo {
      width: 120px;
      height: 170px;
    }

		.services-grid {
			grid-template-columns: 1fr;
			max-width: 400px;
	}
}

@keyframes scroll {
  0% {
      transform: translateX(0);
  }
  100% {
      transform: translateX(-100%);
  }
}

/* Member Detail Pages */
.member-detail {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.member-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #D4AF37;
}

.detail-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #D4AF37;
}

.member-titles {
    flex: 1;
}

.member-titles h1 {
    color: #004C99;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.member-role {
    color: #D4AF37;
    font-size: 1.3rem;
    font-weight: bold;
    font-style: italic;
}

.member-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.member-content p {
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .member-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .detail-photo {
        width: 150px;
        height: 150px;
    }
    
    .member-titles h1 {
        font-size: 2rem;
    }
    
    .member-role {
        font-size: 1.1rem;
    }
}


/* Footer */
.footer {
    background-color: #004C99;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Qualification Logos */
.qualification-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.qual-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    /* Makes white logos */
    filter: brightness(0) invert(1); 
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.qual-logo:hover {
    opacity: 1;
}

/* Footer Email */
.footer-email {
    margin-bottom: 1rem;
}

.footer-email a {
    font-size: 1.1rem;
    margin: 0;
    color: white;
}

/* Footer Copyright */
.footer-copyright p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .qualification-logos {
        gap: 1rem;
    }
    
    .footer-email p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .qualification-logos {
        gap: 0.5rem;
    }
}