/* Base styles and variables */
:root {
  --primary-color: #0f4c81;
  --secondary-color: #4a6fa5;
  --accent-color: #c53030;
  --text-color: #2d3748;
  --light-text: #ffffff;
  --background-color: #ffffff;
  --light-bg: #f7fafc;
  --dark-bg: #1e3a5f;
  --border-radius: 6px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --section-padding: 80px 0;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--primary-color);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: 2rem;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

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

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

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

/* Header and Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--background-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.header-scrolled {
  padding: 15px 0;
  background-color: var(--dark-bg);
}

/* Add styles for header-scrolled logo and nav links */
.header-scrolled .logo,
.header-scrolled .logo span {
  color: var(--light-text);
}

.header-scrolled .nav-link {
  color: var(--light-text);
}

.header-scrolled .nav-link:hover {
  color: var(--secondary-color);
}

.header-scrolled .nav-link:after {
  background-color: var(--secondary-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.logo span {
  color: var(--secondary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover:after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.85)), url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  color: var(--light-text);
  position: relative;
}

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

.hero h1 {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* About Section */
.about {
  padding: var(--section-padding);
  background-color: var(--light-bg);
}

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

.about-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

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

.about-text h2 {
  text-align: left;
}

.about-text h2:after {
  left: 0;
  transform: none;
}

/* Services Section */
.services {
  padding: var(--section-padding);
}

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

.service-card {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
}

/* Sponsor Section */
.sponsor {
  padding: var(--section-padding);
  background-color: var(--light-bg);
}

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

.sponsor-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.sponsor-image img {
  width: 100%;
  height: auto;
}

.sponsor-text h2 {
  text-align: left;
}

.sponsor-text h2:after {
  left: 0;
  transform: none;
}

.sponsor-benefits {
  margin-top: 30px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.benefit-icon {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-right: 15px;
}

.benefit-text h4 {
  margin-bottom: 5px;
}

/* Careers Section */
.careers {
  padding: var(--section-padding);
}

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

.careers-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.careers-image img {
  width: 100%;
  height: auto;
}

.careers-text h2 {
  text-align: left;
}

.careers-text h2:after {
  left: 0;
  transform: none;
}

.job-roles {
  margin-top: 30px;
}

.job-role {
  margin-bottom: 15px;
}

/* FAQ Section */
.faq {
  padding: var(--section-padding);
  background-color: var(--light-bg);
}

.accordion {
  margin-top: 30px;
}

.accordion-item {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.accordion-header {
  background-color: var(--background-color);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: rgba(26, 54, 93, 0.05);
}

.accordion-header h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.accordion-icon {
  font-size: 1.2rem;
  transition: var(--transition);
}

.accordion-content {
  background-color: var(--background-color);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.active .accordion-content {
  padding: 20px;
  max-height: 1000px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-details {
  margin-bottom: 30px;
}

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

.contact-icon {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-right: 15px;
}

.contact-form {
  background-color: var(--light-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 60px 0 20px;
}

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

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 20px;
  display: inline-block;
}

.footer-logo span {
  color: var(--secondary-color);
}

.footer-about p {
  opacity: 0.8;
}

.footer-heading {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--light-text);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .about-content,
  .sponsor-content,
  .careers-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .about-image,
  .sponsor-image,
  .careers-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 80px);
    background-color: var(--dark-bg);
    flex-direction: column;
    padding: 30px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin: 0 0 20px 0;
  }
  
  .nav-link {
    color: var(--light-text);
    font-weight: 600;
  }
  
  .nav-link:hover {
    color: var(--secondary-color);
  }
  
  .nav-link:after {
    background-color: var(--secondary-color);
  }
  
  .header-scrolled .mobile-nav-toggle {
    color: var(--light-text);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.slide-up {
  animation: slideUp 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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