/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
	font-family: "Inter", sans-serif;
	color: #E6E8F0; /* soft light gray for readability */
	background-color: #182A58; /* your deep navy background */
	line-height: 1.6;
}

/* Navigation Styles */
.navbar {
	/* [disabled]padding: 1rem 0; */
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	background-color: #182A58;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #f59e0b;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: #f59e0b;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #334155;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-link:hover {
	background-color: #475569;
	color: #f59e0b;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #e2e8f0;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    height: 100%;
}

.hero-slide {
  display: none;
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  display: block;
}

.hero-overlay {
	color: white;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 2rem;
}

.hero-overlay h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: 1.25rem;
  max-width: 700px;
  margin-bottom: 2rem;
}

.hero-slide.active {
    display: block;
}

.hero-content {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	min-height: 500px;
	background-image: url(../images/hero-1.jpg);
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: #f59e0b;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}


.mining-bg {
    background: linear-gradient(45deg, #dc2626, #ea580c);
}

.safety-bg {
    background: linear-gradient(45deg, #059669, #0d9488);
}

.engineering-bg {
    background: linear-gradient(45deg, #7c3aed, #a855f7);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #f59e0b;
    border-color: #f59e0b;
}

/* About Section */
.about {
	padding:2rem 0;
	background-color: #808080;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: #666666;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #64748b;
}

.about {
  padding: 80px 0;
  background-color: #172A58; /* your theme color */
  color: #f0f4ff; /* readable light text */
}

.about-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 60px;
}

.about-item:nth-child(even) {
  flex-direction: row-reverse; /* alternate layout */
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  max-width: 600px;
  height: 310px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.core-values h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.core-values ul {
    list-style: none;
}

.core-values li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.core-values i {
    color: #059669;
}

.rotating-images {
    position: relative;
    height: 500px; /* increase size */
    width: 100%;
}


.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.image-container.active {
    opacity: 1;
}

.about-img-1 {
	background-image: url(../images/hero-a.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.about-img-2 {
	background-image: url(../images/hero-b.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.about-img-3 {
	background-image: url(../images/hero-c.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.about-img-4 {
	background-image: url(../images/hero-d.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.image-container {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}

.rotating-images {
    position: relative;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
}

/* Partners Section */
.partners {
  position: relative;
  background-image: url('../images/partners-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  text-align: center;
  color: #000; /* ðŸ”¹ Black text */
}

/* Optional overlay for better readability */
.partners::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	background: rgba(0, 0, 0, 0.15); /* dark overlay for contrast */
	z-index: 1;
}

/* Ensure text and grid are above overlay */
.partners .container {
  position: relative;
  z-index: 2;
}

.partners h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #000;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.partner-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 140px;
  width: 100%;
}

.partner-box:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.partner-box img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.partner-box:hover img {
  filter: grayscale(0%);
}

/* Affiliations Section */
.affiliations {
    padding: 5rem 0;
    background: #172A58;
}

.affiliations h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #e6e8f0;
}

.affiliations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.affiliation-item {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.affiliation-item:hover {
    transform: translateY(-5px);
}

.affiliation-logo {
    width: 80px;
    height: 80px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.affiliation-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.affiliation-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Contact Section */
.contact {
	padding: 5rem 0;
	background-color: #f5f5f5;
}

.contact h2 {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
	color: #182A58;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	color: #182A58;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #f59e0b;
    margin-top: 0.25rem;
}

.contact-item h4 {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
	color: #182A58;
}

.contact-item p {
	color: #182A58;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e293b;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f59e0b;
}

.submit-button {
	width: 100%;
	background: #172A58;
	color: white;
	padding: 1rem;
	border: none;
	border-radius: 8px;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.submit-button:hover {
	background: #f59e0b;
	transform: translateY(-2px);
}

/* Footer */
.footer {
	color: #e2e8f0;
	padding: 3rem 0 1rem;
	background-color: #182A58;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #f59e0b;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #f59e0b;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
.navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 2rem;
	background-color: #0f1d46; /* matches your theme */
	position: sticky;
	top: 0;
	z-index: 1000;
}

.nav-logo img {
  height: 50px; /* adjust to your preferred size */
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #e6e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #93c5fd;
}
.nav-logo img { height: 40px; }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

  }

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .about h2,
    .partners h2,
    .affiliations h2,
    .contact h2 {
        font-size: 2rem;
    }

  }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
  .about-item {
    flex-direction: column;
    text-align: center;
  }

  .about-item:nth-child(even) {
    flex-direction: column;
  }

  .about-image img {
    max-width: 100%;
  }
}


/* === LAYOUT === */

.image-container {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}

/* === STATIC IMAGE LAYOUT FOR INNER PAGES === */

/* Static image setup */
.content-image {
  flex: 0 0 45%;
  position: relative;
  min-height: 450px;
  margin-left: -30px;
}

.static-image {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Example image (adjust path if needed) */
.skip-img-1 {
  background-image: url('../images/skipside1.jpg');
}

/* Text side */
.content-text {
  flex: 0 0 55%;
  text-align: left;
}

.content-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #dbe2ef;
  margin-bottom: 1.2rem;
}

/* Heading style */
.section-title {
	background-color: #E6E8F0;
	color: #182A58;
	text-align: center;
	font-size: larger;
	font-weight: 700;
	padding: 0.5rem;
	border-radius: 4px;
	margin-bottom: 1.5rem;
}

.section-title span {
  color: #E6E8F0;
}

/* Responsive layout */
@media (max-width: 900px) {
  .content-container {
    flex-direction: column;
    text-align: center;
  }

/* === Conclusion Section === */
.conclusion {
  background-color: #f5f5f5; /* soft light grey background */
  padding: 60px 0;
  text-align: center;
}

  .content-image {
    margin-left: -30px;
    width: 100%;
    min-height: 300px;
  }
}

.image-container {
  width: 100%;
  max-width: 550px;
  height: 400px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.static-image {
  position: relative;      /* normal flow, not absolute */
  width: 100%;
  height: 100%;
  opacity: 1;              /* always fully visible */
  transition: none;        /* no fade or rotate effects */
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Each section's vertical spacing */
.content-section {
  padding: 30px 0; /* adjust this number to make sections closer or farther apart */
  margin: 0;
}

.conclusion h2 {
  font-size: 2rem;
  color: #172A58; /* your theme color */
  margin-bottom: 20px;
  text-transform: uppercase;
}

.conclusion p {
  color: #222;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1rem;
  line-height: 1.6;
}

/* === Conclusion Section === */
.conclusion {
  background-color: #f5f5f5; /* soft light grey background */
  padding: 60px 0;
  text-align: center;
}

.conclusion-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.conclusion-images img {
  width: 45%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Space between image and text */
.content-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px; /* space between image and text */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Control space below paragraphs */
.content-text p {
	margin-bottom: 16px; /* smaller spacing between paragraphs */
	text-align: justify;
}

/* Remove any unnecessary bottom padding from the text area */
.content-text {
  padding-bottom: 0;
  margin-bottom: 0;
}

.mine-large {
  width: 30%;
  max-width: 200px; /* adjust this number until it matches the others */
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto; /* centers the image */
}

/* === FINAL SPACING FIX === */
.content-section {
  margin: 0;
  padding: 10px 0; /* tighter vertical spacing between sections */
}

.content-container {
  margin: 0 auto;
  padding: 0; /* remove top/bottom padding */
  gap: 2rem; /* small horizontal gap only */
}

.content-text, .content-image {
  margin: 0;
  padding: 0;
}

section + section {
  margin-top: 20px; /* small, uniform gap between all sections */
}
.content-section .content-container .content-text p {
	font-size: large;
	font-family: Inter, sans-serif;
	text-align: justify;
}


.justified {
    text-align: justify;
}

.left-heading {
    text-align: left !important;
}
.content-section .content-container .content-text .content-text2 p b {
	text-align: left;
}
