/* PERC Website Main Stylesheet */
/* Professional Engineering Regulatory Council */

:root {
  --perc-primary: #2c1810;
  --perc-secondary: #8b4513;
  --perc-accent: #dc3545;
  --perc-light: #f8f9fa;
  --perc-dark: #1a0f0a;
  --perc-success: #28a745;
  --perc-warning: #ffc107;
  --perc-info: #17a2b8;
}

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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

/* Header Styles */
.top-header {
  background: var(--perc-dark);
  color: white;
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-header a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-right: 20px;
  transition: color 0.3s ease;
}

.top-header a:hover {
  color: white;
}

/* Navigation */
.navbar {
  background: white !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--perc-primary) !important;
}

.navbar-nav .nav-link {
  color: var(--perc-primary) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--perc-secondary) !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--perc-secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--perc-primary) 0%, var(--perc-secondary) 100%);
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

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

/*-----------------------------------
    1 - CTA
------------------------------------*/
.cta-content {
  padding: 30px 0 90px;
  color: #fff;
  background-color: #ee1515;
  position: relative;
  z-index: 1;
}

.cta-content::after {
  content: "";
  width: 100%;
  height: 100%;
  background-color: #8b4513;
  position: absolute;
  top: -25px;
  left: -1px;
  z-index: -1;
  transition: all 0.2s ease-in-out;
}

.cta-content .subscribe-btn {
  align-self: flex-end;
  margin-right: 30px;
}

 .cta-content {
    border-top-right-radius: 200px;
    border-bottom-left-radius: 200px;
  }
  .cta-content::after {
    border-top-right-radius: 200px;
    border-bottom-left-radius: 200px;
  }
  .cta-content .subscribe-btn {
    align-self: flex-end;
    margin-right: 30px;
  }


/* Buttons */
.btn-primary {
  background: var(--perc-accent);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  margin-left: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* Stats Section */
.stats-section {
  background: white;
  padding: 60px 0;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}

.stats-card {
  background: white;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stats-card i {
  font-size: 3rem;
  color: var(--perc-primary);
  margin-bottom: 20px;
}

.stats-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--perc-primary);
  margin-bottom: 10px;
}

.stats-card p {
  color: #666;
  font-weight: 500;
}

/* Services Section */
.services {
  padding: 100px 0;
  background: var(--perc-light);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h6 {
  color: var(--perc-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--perc-primary);
  font-weight: 700;
}

.service-card {
  background: white;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.service-card h5 {
  color: var(--perc-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.service-card p {
  color: #666;
  line-height: 1.7;
}

/* About Section */
.about-section {
  padding: 100px 0;
}

.about-content h2 {
  font-size: 2.5rem;
  color: var(--perc-primary);
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #555;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #555;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list i {
  color: var(--perc-primary);
  margin-right: 10px;
}

.about-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

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

/* News Section */
.news-section {
  padding: 100px 0;
  background: var(--perc-light);
}

.news-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 25px;
}

.news-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.news-meta .badge {
  font-size: 0.75rem;
  padding: 4px 8px;
}

.news-card h5 {
  color: var(--perc-primary);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.news-card h5 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card h5 a:hover {
  color: var(--perc-secondary);
}

.news-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.footer-widget h6 {
  color: white;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-widget p,
.footer-widget a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-widget a:hover {
  color: white;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
}

.footer-widget ul li {
  margin-bottom: 8px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--perc-secondary);
  transform: translateY(-2px);
}

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

/* Form Styles */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--perc-primary);
  box-shadow: 0 0 0 0.2rem rgba(44, 24, 16, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--perc-primary);
  margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-outline-light {
    margin-left: 0;
    margin-top: 10px;
    display: block;
    width: 100%;
  }

  .stats-card,
  .service-card {
    margin-bottom: 30px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .stats-card {
    padding: 30px 20px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .cta-section h2 {
    font-size: 2rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Spinner */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--perc-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.text-perc-primary {
  color: var(--perc-primary) !important;
}
.text-perc-secondary {
  color: var(--perc-secondary) !important;
}
.bg-perc-primary {
  background-color: var(--perc-primary) !important;
}
.bg-perc-secondary {
  background-color: var(--perc-secondary) !important;
}
.border-perc-primary {
  border-color: var(--perc-primary) !important;
}




.cta-section { padding: 40px 0; }
.cta-wrapper { background: transparent; padding: 0; }
.cta-shape {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(54,16,34,1) 0%, rgba(54,16,34,1) 70%);
  border-radius: 80px 0 80px 0;
  box-shadow: inset 0 -8px 0 rgba(220,53,69,0.9);
  z-index: 0;
  clip-path: ellipse(60% 55% at 10% 40%);
}
.cta-content {
  position: relative;
  z-index: 2;
  padding: 60px 30px;
  gap: 20px;
  align-items: center;
}
.cta-title {
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 28px;
  margin-bottom: 12px;
}
.cta-lead {
  color: rgba(255,255,255,0.85);
  margin-bottom: 0;
  max-width: 560px;
}
.cta-join, .cta-learn { border-radius: 10px; padding: 14px 28px; font-weight:700; text-transform:uppercase; letter-spacing:1px; }
.cta-join {
  background: linear-gradient(180deg,#ef2c1f,#d81b12);
  color: #fff;
  border: none;
  box-shadow: 0 6px 0 rgba(0,0,0,0.15);
}
.cta-join:hover { transform: translateY(-2px); }
.cta-learn {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.95);
}
@media (max-width: 1199px) {
  .cta-content { flex-direction: column; text-align:center; }
  .cta-title { font-size: 22px; }
  .cta-shape { clip-path: ellipse(70% 60% at 10% 40%); border-radius: 40px; }
}


.cta-content {
  padding: 30px 0 90px;
  color: #fff;
  background-color: #ee1515;
  position: relative;
  z-index: 1;
}


.subscribe-btn {
  align-self: flex-end;
  margin-right: 30px;
}