/* PMI Bengkulu Official Website Styles */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-red: #B22222;
  --dark-red: #8B0000;
  --light-red: #CD5C5C;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --medium-gray: #CCCCCC;
  --dark-gray: #333333;
  --text-gray: #555555;
  --border-gray: #DDDDDD;
  --shadow: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 8px rgba(0,0,0,0.15);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

/* Header Styles */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background-color: var(--primary-red);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-main {
  padding: 15px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-placeholder {
  width: 60px;
  height: 60px;
  background-color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  font-size: 24px;
}

.logo-text h1 {
  font-size: 24px;
  color: var(--primary-red);
  font-weight: bold;
  margin-bottom: 2px;
}

.logo-text p {
  font-size: 14px;
  color: var(--text-gray);
}

/* Navigation */
.navigation {
  background-color: var(--light-gray);
  border-top: 3px solid var(--primary-red);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: var(--primary-red);
  color: var(--white);
  border-bottom-color: var(--dark-red);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-red);
  cursor: pointer;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-section {
        background: linear-gradient(135deg, rgba(207, 84, 109, 0.8), rgba(53, 20, 27, 0.8)), 
                url('/img/banner.jpeg') center/cover no-repeat;
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero-section p {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--white);
  color: var(--primary-red);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--white);
}

.btn:hover {
  background-color: transparent;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

.btn-primary:hover {
  background-color: var(--dark-red);
  border-color: var(--dark-red);
}

/* Content Sections */
.section {
  padding: 60px 0;
}

.section:nth-child(even) {
  background-color: var(--light-gray);
}

.section h2 {
  text-align: center;
  font-size: 2.5em;
  color: var(--primary-red);
  margin-bottom: 40px;
  font-weight: bold;
}

.section h3 {
  color: var(--primary-red);
  margin-bottom: 20px;
  font-size: 1.5em;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

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

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-red);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

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

.card p {
  color: var(--text-gray);
  line-height: 1.8;
}

/* Service Cards */
.service-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 32px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.5em;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--white);
  color: var(--primary-red);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid var(--white);
}

.cta-button:hover {
  background-color: transparent;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: var(--white);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-gray);
}

.table th {
  background-color: var(--primary-red);
  color: var(--white);
  font-weight: bold;
}

.table tbody tr:hover {
  background-color: var(--light-gray);
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--dark-gray);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-gray);
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.1);
}

/* Contact Info */
.contact-info {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary-red);
}

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

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-details h4 {
  color: var(--primary-red);
  margin-bottom: 5px;
  font-weight: bold;
}

.contact-details p {
  color: var(--text-gray);
  margin: 0;
}

/* Footer */
.footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 40px 0 20px;
}

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

.footer-section h3 {
  color: var(--primary-red);
  margin-bottom: 20px;
}

.footer-section p,
.footer-section li {
  color: var(--medium-gray);
  line-height: 1.8;
}

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

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

.footer-section a {
  color: var(--medium-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  border-top: 1px solid var(--text-gray);
  padding-top: 20px;
  text-align: center;
  color: var(--medium-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu a {
    border-bottom: 1px solid var(--border-gray);
  }
  
  .hero-section h1 {
    font-size: 2.2em;
  }
  
  .hero-section p {
    font-size: 1.1em;
  }
  
  .section h2 {
    font-size: 2em;
  }
  
  .header-main .container {
    flex-direction: column;
    gap: 20px;
  }
  
  .logo-section {
    text-align: center;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card {
    padding: 20px;
  }
  
  .cta-section h2 {
    font-size: 2em;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 0;
  }
  
  .hero-section h1 {
    font-size: 1.8em;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section h2 {
    font-size: 1.8em;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  
  .cta-button {
    padding: 12px 25px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.pt-20 {
  padding-top: 20px;
}

.pb-20 {
  padding-bottom: 20px;
}

.fw-bold {
  font-weight: bold;
}

.text-red {
  color: var(--primary-red);
}

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

/* Animation for smooth scrolling */
html {
  scroll-behavior: smooth;
}