/* ============================================
   QJEXOR - Institutional Knowledge Portal
   Color Palette: #2C3E50, #E74C3C, #F39C12, #27AE60
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #FFFFFF;
  color: #2C3E50;
  line-height: 1.6;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  color: #2C3E50;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.8rem;
  border-bottom: 3px solid #F39C12;
  padding-bottom: 0.8rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #E74C3C;
}

h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1rem;
}

a {
  color: #E74C3C;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #F39C12;
  text-decoration: underline;
}

/* Header & Navigation */
header {
  background-color: #2C3E50;
  color: white;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #F39C12;
  font-family: 'Georgia', serif;
  letter-spacing: 2px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
}

nav a {
  color: white;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: #F39C12;
}

nav a.active {
  color: #F39C12;
  font-weight: bold;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #2C3E50 0%, #34495e 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
}

.hero-content p {
  color: #ECF0F1;
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Main Content Sections */
.section {
  padding: 5rem 0;
  background-color: #FFFFFF;
}

.section-alt {
  background-color: #F8F8F8;
}

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

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: #7F8C8D;
  max-width: 700px;
  margin: 0 auto;
}

/* Two-Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.two-column img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.two-column-text h3 {
  margin-top: 0;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.card {
  background: white;
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 2rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.card-link {
  color: #E74C3C;
  font-weight: bold;
  transition: color 0.3s ease;
}

.card-link:hover {
  color: #F39C12;
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-content {
  padding: 2rem;
}

.blog-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.blog-date {
  color: #95A5A6;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: #E74C3C;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: #F39C12;
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background-color: #27AE60;
}

.btn-secondary:hover {
  background-color: #229954;
}

.btn-outline {
  background-color: transparent;
  color: #2C3E50;
  border: 2px solid #2C3E50;
}

.btn-outline:hover {
  background-color: #2C3E50;
  color: white;
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2C3E50;
}

input[type="text"],
input[type="email"],
input[type="phone"],
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #BDC3C7;
  border-radius: 4px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
textarea:focus {
  outline: none;
  border-color: #E74C3C;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

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

/* Footer */
footer {
  background-color: #2C3E50;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  border-bottom: 2px solid #F39C12;
  padding-bottom: 0.5rem;
}

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

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: #ECF0F1;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #F39C12;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  color: #ECF0F1;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 1rem;
  text-align: center;
  color: #95A5A6;
  font-size: 0.9rem;
}

/* Disclaimer Box */
.disclaimer-box {
  background-color: #F0F0F0;
  border-left: 4px solid #E74C3C;
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 4px;
}

.disclaimer-box h4 {
  color: #E74C3C;
  margin-top: 0;
}

/* Image Sizing */
img.section-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  margin-bottom: 2rem;
}

img.small-image {
  width: 100%;
  max-width: 350px;
  height: auto;
}

img.medium-image {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-accent {
  color: #E74C3C;
}

.text-success {
  color: #27AE60;
}

.mt-3 {
  margin-top: 2rem;
}

.mb-3 {
  margin-bottom: 2rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
