/* Base Styles */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --light-color: #f3f4f6;
    --dark-color: #1f2937;
    --text-color: #4b5563;
    --heading-color: #111827;
    --white: #ffffff;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    /* Additional variables for consistency */
    --footer-bg: linear-gradient(135deg, #0f2642 0%, #1e3a8a 100%);
    --footer-text: #f0f0f0;
    --footer-link: #8eb2f4;
    --footer-link-hover: #ffffff;
    --footer-heading-color: #ffffff;
    --section-spacing: 60px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 20px;
    text-align: justify;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* FIXED HEADER & NAVIGATION */
header {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  position: fixed; /* Changed from sticky to fixed for consistent behavior */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative; /* Added for proper dropdown positioning */
}

/* LOGO STYLES */
.logo {
    flex-shrink: 0;
    max-width: 220px;
    transition: var(--transition);
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    width: 100%;
    max-height: 60px;
    object-fit: contain;
    transition: var(--transition);
}

header.scrolled .logo {
    max-width: 180px;
}

header.scrolled .logo-img {
    max-height: 48px;
}

/* MAIN NAVIGATION */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001; /* Ensure it stays above the menu when active */
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  position: relative;
  transition: background-color 0.3s ease;
}

.hamburger:before,
.hamburger:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--dark-color);
  transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger:before {
  top: -8px;
}

.hamburger:after {
  bottom: -8px;
}

/* Mobile menu active state */
.mobile-menu-toggle.active .hamburger {
  background-color: transparent; /* Hide the middle line when active */
}

.mobile-menu-toggle.active .hamburger:before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger:after {
  bottom: 0;
  transform: rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.nav-item {
  position: relative;
  margin-left: 1.5rem;
}

.nav-item a {
  display: block;
  padding: 0.5rem 0;
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

/* DROPDOWN STYLES */
.dropdown {
    position: relative;
}

.dropdown-toggle:after {
    content: '\f107'; /* FontAwesome icon fix */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle:after,
.dropdown.show-dropdown .dropdown-toggle:after {
    transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-md);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown:hover .dropdown-menu,
.dropdown.show-dropdown .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
  width: 100%;
}

.dropdown-menu a {
  padding: 10px 15px;
  display: block;
  color: var(--text-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu a:hover {
  background-color: rgba(30, 115, 190, 0.05);
  color: var(--primary-color);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

/* MOBILE NAVIGATION */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 20px 30px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-item {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #f8f9fa;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border: none;
        width: 100%;
        margin-top: 5px;
    }
    
    .dropdown.show-dropdown .dropdown-menu {
        max-height: 300px;
    }
    
    .dropdown-toggle:after {
        float: right;
        margin-top: 8px;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* MAIN CONTENT ADJUSTMENT */
main {
    padding-top: 100px;
}

/* HERO SECTION - CENTERED */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.8) 0%, rgba(30, 115, 190, 0.7) 30%, rgba(0, 40, 85, 0.8) 70%, rgba(20, 70, 140, 0.75) 100%);
    z-index: 1;
    animation: flowingGradient 25s ease infinite;
    background-size: 300% 300%;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 900px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    text-align: center;
}

@keyframes flowingGradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 30%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 70%; }
    100% { background-position: 0% 50%; }
}

/* CENTERED SECTIONS */
section {
    padding: 60px 0;
}

.content-box {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* VISION-MISSION SECTION - CENTERED */
.vision-mission {
    background-color: #fff;
}

.vision-mission .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin-top: 30px;
}

.vision-mission .col {
    flex: 1 1 450px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

.vision-mission .content-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.vision-mission h2 {
    text-align: center;
    margin-bottom: 25px;
}

/* CORE VALUES - CENTERED GRID */
.core-values {
    background-color: #f8f9fa;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.value-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 2.5rem;
    color: #1e73be;
    margin-bottom: 20px;
}

/* BENEFITS GRID - CENTERED */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
    justify-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 380px;
}

.benefit-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.benefit-item h3 {
    color: #1e73be;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

/* QUOTES SECTION - CENTERED */
.quotes {
    background-color: #1e73be;
    color: #fff;
    padding: 80px 0;
    position: relative;
}

.quotes-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-items {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-item {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    padding: 20px;
    text-align: center;
}

.quote-item.active {
    opacity: 1;
    visibility: visible;
}

blockquote {
    font-style: italic;
    font-size: 1.2rem;
    position: relative;
    padding: 0 30px;
    margin: 0;
    text-align: center;
}

blockquote:before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    opacity: 0.3;
}

blockquote p {
    margin-bottom: 15px;
    text-align: center;
}

blockquote cite {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-style: normal;
    font-weight: 600;
}

.quotes-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.quote-prev,
.quote-next {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-prev:hover,
.quote-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.quote-dots {
    display: flex;
    gap: 8px;
}

.quote-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-dot.active {
    background: white;
    transform: scale(1.2);
}

/* USEFUL LINKS - CENTERED GRID */
.useful-links {
    background-color: #f8f9fa;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.link-item {
    background-color: #fff;
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.link-icon {
    font-size: 2rem;
    color: #1e73be;
    margin-bottom: 15px;
}

.link-item h3 {
    margin-bottom: 10px;
    color: #1e73be;
}

.link-item p {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

/* ENHANCED FOOTER */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

/* Footer Text Visibility Improvements */
footer p, 
footer .footer-contact p,
footer .copyright p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
}

footer h4 {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  max-width: 180px;
  margin-bottom: 15px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
}

.footer-contact p i {
  color: #4d95e6;
  margin-right: 10px;
  margin-top: 5px;
  font-size: 16px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* Improve social icon visibility and positioning */
.footer-social {
  display: flex;
  flex-direction: column;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  margin-right: 12px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    /* Header */
    header .container {
        padding: 0.75rem 15px;
    }
    
    .logo {
        max-width: 160px;
    }
    
    .logo-img {
        max-height: 45px;
    }
    
    /* Hero */
    .hero {
        padding: 80px 0;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    /* Sections */
    .vision-mission .row {
        flex-direction: column;
        gap: 20px;
    }
    
    .vision-mission .col {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-contact h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .benefits-grid,
    .values-grid,
    .links-grid {
        padding: 0 10px;
    }
    
    .quote-items {
        min-height: 280px;
    }
    
    blockquote {
        font-size: 1.1rem;
        padding: 0 15px;
    }
}

/* Large Text Class */
.large-text {
    font-size: 1.5rem; /* Adjust size as needed */
    line-height: 1.8;
}

/* UTILITY CLASSES */
.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 58, 138, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* VIDEO BOUNDARY */
.video-boundary {
    border: 2px solid #000;
    padding: 10px;
    display: inline-block;
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-boundary video {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 4px;
}

/* SUCCESS STORIES CENTERING */
.success-stories {
    background-color: #f8f9fa;
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-container p {
    text-align: center;
    margin-bottom: 30px;
    max-width: 700px;
}
    
    .main-nav {
        width: 100%;
        justify-content: flex-end;
    }
    
    .team-member {
        flex-direction: column;
    }
    
    .member-image {
        flex: 0 0 200px;
        height: 200px;
        overflow: hidden;
    }
    
    .member-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* Add these styles for the Our Team page */

.page-header {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.8) 0%, rgba(30, 115, 190, 0.7) 50%, rgba(0, 40, 85, 0.8) 100%);
    z-index: 1;
    animation: flowingGradient 15s ease infinite;
    background-size: 300% 300%;
}

@keyframes flowingGradient {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 30%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 70%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.page-header .container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.page-header h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80px;
    height: 4px;
    background-color: #fff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.page-header:hover h1::after {
    width: 120px;
}

.page-header p {
    color: #f0f0f0;
    font-size: 1.3rem;
    max-width: 700px;
    margin: 15px auto 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}


/* Secondary header variations to add visual interest */
.why-choose-us .page-header::before,
.our-services .page-header::before,
.contact-us .page-header::before {
    background: linear-gradient(120deg, rgba(30, 115, 190, 0.8) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(30, 115, 190, 0.8) 100%);
    animation: flowingGradient 18s ease infinite;
    animation-direction: alternate;
}

.about-us .page-header::before,
.our-strengths .page-header::before,
.gallery .page-header::before {
    background: linear-gradient(120deg, rgba(0, 40, 85, 0.8) 0%, rgba(30, 115, 190, 0.7) 50%, rgba(0, 0, 0, 0.8) 100%);
    animation: flowingGradient 20s ease infinite;
    animation-direction: alternate-reverse;
}


/* Enhanced Team Page Styles */
.team-intro {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.team-intro .content-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
}

.leadership-team,
.team-members {
    padding: 60px 0;
}

.leadership-team h2,
.team-members h2,
.support-team h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #333;
    position: relative;
}

.leadership-team h2::after,
.team-members h2::after,
.support-team h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background-color: #1e73be;
    transform: translateX(-50%);
}

/* Team Profile Styles */
.team-profile {
    display: flex;
    align-items: stretch;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.team-profile.featured {
    border-left: 5px solid #1e73be;
}

.profile-image {
    flex: 0 0 35%;
    min-height: 400px;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-profile:hover .profile-image img {
    transform: scale(1.05);
}

.profile-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.profile-content h3 {
    color: #1e73be;
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.designation {
    color: #666;
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.profile-details {
    flex: 1;
}

.profile-details h4 {
    color: #333;
    font-size: 1.3rem;
    margin: 25px 0 15px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.profile-details ul {
    margin-bottom: 20px;
    padding-left: 0;
}

.profile-details ul li {
    list-style: none;
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.profile-details ul li:before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #1e73be;
    font-size: 0.8rem;
}

.profile-details ol {
    margin-bottom: 20px;
}

.profile-details ol li {
    margin-bottom: 15px;
    line-height: 1.7;
}

.profile-details p {
    margin-bottom: 18px;
    line-height: 1.7;
    text-align: justify;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-start;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #1e73be;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: #1e73be;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(30, 115, 190, 0.3);
}

/* Support Team Grid */
.support-team {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
    text-align: center;
}

.card-content h3 {
    color: #1e73be;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Join Team Section */
.join-team {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.join-team h2 {
    margin-bottom: 30px;
    color: #333;
}

.join-team .content-box {
    max-width: 700px;
    margin: 0 auto;
}

.join-team .content-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

.join-team .content-box a {
    color: #1e73be;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
}

.join-team .content-box a:hover {
    border-bottom: 1px solid #1e73be;
}

/* Responsive Design for Team Page */
@media (max-width: 992px) {
    .team-profile {
        flex-direction: column;
    }
    
    .profile-image {
        flex: none;
        height: 300px;
        min-height: auto;
    }
    
    .profile-content {
        padding: 30px;
    }
    
    .profile-content h3 {
        font-size: 1.8rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .leadership-team h2,
    .team-members h2,
    .support-team h2 {
        font-size: 2rem;
    }
    
    .profile-content {
        padding: 25px;
    }
    
    .profile-content h3 {
        font-size: 1.6rem;
    }
    
    .designation {
        font-size: 1rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .team-intro .content-box,
    .profile-content {
        padding: 20px;
    }
    
    .profile-details h4 {
        font-size: 1.2rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* CSS Optimizations */

/* Optimize transitions for performance */
* {
    transition-property: color, background-color, border-color, box-shadow;
    transition-duration: 0.3s;
}

[class*="animate"], .btn, .nav-item, .social-icons a {
    transition-property: transform, opacity, color, background-color;
}

/* Use more efficient selectors */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Optimize responsive breakpoints */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }
    
    .footer-logo {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

/* --- WHAT WE DO SECTION FIXES --- */
.what-we-do-section,
.services-section,
.service-section {
    width: 100%;
    max-width: 100vw;
    padding: 70px 0;
    margin: 0 auto;
    background: #f9f9f9;
    box-sizing: border-box;
}

.what-we-do-section .container,
.services-section .container,
.service-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.services-table-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
    overflow-x: auto;
    box-sizing: border-box;
}

.services-table {
    width: 100%;
    min-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.services-table thead {
    background-color: var(--primary-color, #1e73be);
    color: #fff;
}

.services-table th,
.services-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.services-table th {
    font-weight: 600;
    font-size: 1.1rem;
}

.services-table tbody tr:last-child td {
    border-bottom: none;
}

.services-table tbody tr:hover {
    background: #f5f9ff;
}

.services-table .service-name {
    font-weight: 600;
    color: var(--heading-color, #111827);
}

.services-table .service-description,
.services-table .service-benefits {
    color: var(--text-color, #4b5563);
}

.services-table .service-benefits ul {
    margin: 0;
    padding-left: 20px;
}

.services-table .service-icon {
    color: var(--primary-color, #1e73be);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(30, 115, 190, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* CONTACT PAGE STYLING */
.contact-info {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.contact-info h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.contact-info > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-color);
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* Contact Information Styling */
.contact-details {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-details h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-list li i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    background-color: rgba(30, 58, 138, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-list li:hover i {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.contact-text {
    flex: 1;
}

.contact-text h4 {
    margin-bottom: 6px;
    color: var(--heading-color);
    font-size: 1.1rem;
}

.contact-text p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
    text-align: left;
}

/* Enhanced Contact Form */
.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--heading-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    color: var(--text-color);
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

.contact-form .btn {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.contact-form .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
}

/* Form Message Styling */
.form-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: var(--border-radius-md);
    text-align: center;
    font-weight: 500;
    animation: slideIn 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(-10px);
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* CUSTOM CURSOR */
body {
    cursor: url('../img/cursor.png'), auto;
}

/* FLOWER ANIMATION - HERO SECTION */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: url('../img/flower.svg') no-repeat center center;
    background-size: 10%;
    opacity: 0.1;
    transform: translate(-50%, -50%) rotate(30deg);
    pointer-events: none;
    z-index: 0;
    animation: flowerAnimation 20s linear infinite;
}

@keyframes flowerAnimation {
    0% {
        transform: translate(-50%, -50%) rotate(30deg) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(30deg) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) rotate(30deg) scale(1);
    }
}

/* STARS ANIMATION - HERO SECTION */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/stars.svg') repeat;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
}

/* SCROLL REVEAL ANIMATION */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* PAGE TRANSITION ANIMATION */
.page-transition {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page-transition-enter-active {
    opacity: 1;
}

.page-transition-leave-active {
    opacity: 0;
}


/* Services Page Styles */
.service-section {
    padding: 60px 0;
}

.service-section h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: #1e73be;
}

.service-section h2 i {
    margin-right: 10px;
}

.bg-light {
    background-color: #f8f9fa;
}

/* Management System Articles */
.service-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.article-card {
    padding: 25px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.article-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1e73be;
}

.article-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Timeline Grid */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
}

.timeline-item {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 5px solid #1e73be;
}

.timeline-item h3 {
    color: #1e73be;
    margin-bottom: 15px;
}

/* Success Statistics */
.stats-container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.success-statement {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-item {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e73be;
    margin-bottom: 10px;
}

/* Training Services */
.training-container {
    margin-top: 30px;
}

.training-topics {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.training-topics li {
    padding: 10px 0;
    font-size: 1.1rem;
}

.training-topics li i {
    color: #1e73be;
    margin-right: 10px;
}

.training-stats {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.stat-box {
    flex: 1;
    padding: 20px;
    background-color: #1e73be;
    color: white;
    border-radius: 8px;
    text-align: center;
}

.large-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* Educational Posters */
.poster-topics {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.topic-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.carousel-item {
    width: 220px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-5px);
}

.carousel-icon {
    font-size: 2rem;
    color: #1e73be;
    margin-bottom: 15px;
}

/* Site Engineering */
.engineering-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-box {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: #1e73be;
    margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(30, 115, 190, 0.9), rgba(30, 115, 190, 0.9)), url('https://via.placeholder.com/1920x400') no-repeat center center;
    background-size: cover;
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-articles {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .timeline-grid {
        grid-template-columns: 1fr;
    }
    
    .training-stats {
        flex-direction: column;
    }
    
    .engineering-services {
        grid-template-columns: 1fr;
    }
}

/* Text justification for content */
p {
    margin-bottom: 20px;
    text-align: justify;
}

.content-box p,
.about-text p,
.purpose-content p,
.profile-details p,
.vision-item p,
.value-item p,
.benefit-item p,
.principle-item p,
.lead-text,
.progress-content p,
.contact-title p,
blockquote p {
    text-align: justify;
}

/* Exceptions where justified text isn't appropriate */
.text-center p,
.hero p,
footer p,
.copyright p,
.page-header p,
.impact-note,
.gallery-caption p,
blockquote cite {
    text-align: inherit; /* Keep original alignment */
}

/* Important Links Section Styles */
.important-links {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.important-links h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.link-item {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.link-item h3 {
    color: #1e73be;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e7e7e7;
}

.link-item ul {
    list-style: none;
    padding-left: 0;
}



.link-item ul li {
    margin-bottom: 0.75rem;
}

.link-item a {
    color: #333;
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.link-item a:hover {
    color: #1e73be;
}

.link-item a i {
    margin-right: 0.5rem;
    color: #1e73be;
}

/* Enhanced Image and Video Styling */
.feature-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.feature-image:hover {
    transform: scale(1.02);
}

.col-image {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.col-text {
    flex: 1 1 400px;
}

.col-image {
    flex: 1 1 300px;
}

.video-placeholder {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin: 20px 0;
}

.video-placeholder video {
    display: block;
    width: 100%;
    height: auto;
}

.culture-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.culture-image {
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.culture-image:hover img {
    transform: scale(1.05);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
    
    .col-image {
        order: -1; /* Image appears above text on mobile */
    }
    
    .feature-image {
        max-width: 100%;
    }
}

/* Fix for Font Awesome icons */
/* Add this to ensure Font Awesome icons display correctly */
.fa,
.fas,
.far,
.fal,
.fab,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
.fa-brands {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.purpose-image img {
    width: 100%;
    height: 250px; /* Set a fixed height */
    object-fit: cover; /* Ensure the image scales properly */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Certificates Section */
.certificates-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.certificates-section h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: #1e73be;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

.certificate-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.article-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Timeline Grid */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
}

.timeline-item {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 5px solid #1e73be;
}

.timeline-item h3 {
    color: #1e73be;
    margin-bottom: 15px;
}

/* Success Statistics */
.stats-container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.success-statement {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-item {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e73be;
    margin-bottom: 10px;
}

/* Training Services */
.training-container {
    margin-top: 30px;
}

.training-topics {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.training-topics li {
    padding: 10px 0;
    font-size: 1.1rem;
}

.training-topics li i {
    color: #1e73be;
    margin-right: 10px;
}

.training-stats {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.stat-box {
    flex: 1;
    padding: 20px;
    background-color: #1e73be;
    color: white;
    border-radius: 8px;
    text-align: center;
}

.large-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* Educational Posters */
.poster-topics {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.topic-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.carousel-item {
    width: 220px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-5px);
}

.carousel-icon {
    font-size: 2rem;
    color: #1e73be;
    margin-bottom: 15px;
}

/* Site Engineering */
.engineering-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-box {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: #1e73be;
    margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(30, 115, 190, 0.9), rgba(30, 115, 190, 0.9)), url('https://via.placeholder.com/1920x400') no-repeat center center;
    background-size: cover;
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-articles {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .timeline-grid {
        grid-template-columns: 1fr;
    }
    
    .training-stats {
        flex-direction: column;
    }
    
    .engineering-services {
        grid-template-columns: 1fr;
    }
}

/* Text justification for content */
p {
    margin-bottom: 20px;
    text-align: justify;
}

.content-box p,
.about-text p,
.purpose-content p,
.profile-details p,
.vision-item p,
.value-item p,
.benefit-item p,
.principle-item p,
.lead-text,
.progress-content p,
.contact-title p,
blockquote p {
    text-align: justify;
}

/* Exceptions where justified text isn't appropriate */
.text-center p,
.hero p,
footer p,
.copyright p,
.page-header p,
.impact-note,
.gallery-caption p,
blockquote cite {
    text-align: inherit; /* Keep original alignment */
}

/* Important Links Section Styles */
.important-links {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.important-links h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.link-item {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.link-item h3 {
    color: #1e73be;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e7e7e7;
}

.link-item ul {
    list-style: none;
    padding-left: 0;
}



.link-item ul li {
    margin-bottom: 0.75rem;
}

.link-item a {
    color: #333;
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.link-item a:hover {
    color: #1e73be;
}

.link-item a i {
    margin-right: 0.5rem;
    color: #1e73be;
}

/* Enhanced Image and Video Styling */
.feature-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.feature-image:hover {
    transform: scale(1.02);
}

.col-image {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.col-text {
    flex: 1 1 400px;
}

.col-image {
    flex: 1 1 300px;
}

.video-placeholder {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin: 20px 0;
}

.video-placeholder video {
    display: block;
    width: 100%;
    height: auto;
}

.culture-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.culture-image {
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.culture-image:hover img {
    transform: scale(1.05);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
    
    .col-image {
        order: -1; /* Image appears above text on mobile */
    }
    
    .feature-image {
        max-width: 100%;
    }
}

/* Fix for Font Awesome icons */
/* Add this to ensure Font Awesome icons display correctly */
.fa,
.fas,
.far,
.fal,
.fab,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
.fa-brands {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.purpose-image img {
    width: 100%;
    height: 250px; /* Set a fixed height */
    object-fit: cover; /* Ensure the image scales properly */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
