/* --- style.css (Updated) --- */
:root {
   --primary: #1a237e; /* Royal Blue */
   --accent: #c5a059;  /* Gold */
   --text: #333;
   --light: #f8f9fa;
   --border: #e0e0e0;
}

body {
   font-family: 'Georgia', serif;
   margin: 0;
   padding: 0;
   line-height: 1.6;
   color: var(--text);
   background-color: var(--light);
   display: flex;
   flex-direction: column;
   min-height: 100vh;
}

/* Navigation */
nav {
   background: var(--primary);
   color: white;
   padding: 1rem 5%;
   display: flex;
   justify-content: space-between;
   align-items: center;
   box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo {
   font-size: 1.5rem;
   font-weight: bold;
   text-transform: uppercase;
   font-family: 'Arial', sans-serif;
   letter-spacing: 1px;
}

.logo span { color: var(--accent); }

.nav-links a {
   color: white;
   text-decoration: none;
   margin-left: 20px;
   font-family: 'Arial', sans-serif;
   font-size: 0.9rem;
   transition: 0.3s;
}

.nav-links a:hover { color: var(--accent); }

/* Hero Section */
.hero {
   background: linear-gradient(rgba(26, 35, 126, 0.8), rgba(26, 35, 126, 0.8)), url('banner_image.png');
   background-size: cover;
   background-position: center;
   color: white;
   padding: 80px 20px;
   text-align: center;
}

.hero h1 { font-size: 3rem; margin: 0 0 10px 0; }
.hero p { font-size: 1.2rem; margin: 0 auto; max-width: 700px; }

/* Disclaimer Modal (Popup) */
.modal-overlay {
   position: fixed;
   top: 0; left: 0; width: 100%; height: 100%;
   background: rgba(0,0,0,0.85);
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: 2000;
   display: none; /* Hidden by default, shown via JS */
}

.modal-content {
   background: white;
   padding: 40px;
   width: 90%;
   max-width: 600px;
   border-radius: 5px;
   text-align: left;
   border-top: 5px solid var(--accent);
}

.modal-btn {
   background: var(--primary);
   color: white;
   border: none;
   padding: 12px 30px;
   font-size: 1rem;
   cursor: pointer;
   margin-top: 20px;
}

/* General Layouts */
.container { padding: 40px 10%; flex: 1; }
h2 { color: var(--primary); border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; }

/* Grid for Courts */
.courts-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 30px;
   margin-top: 30px;
}

.court-card {
   background: white;
   border: 1px solid var(--border);
   border-radius: 5px;
   overflow: hidden;
   transition: transform 0.3s;
}

.court-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.court-img {
   width: 100%;
   height: 200px;
   object-fit: cover;
   background-color: #ddd;
}

.court-info { padding: 20px; }
.court-info h3 { margin-top: 0; color: var(--primary); }

/* Knowledge Repository Layout */
.repo-container {
   display: flex;
   gap: 40px;
   flex-wrap: wrap;
}

.sidebar {
   flex: 1;
   min-width: 250px;
   background: white;
   padding: 20px;
   border: 1px solid var(--border);
   height: fit-content;
}

.article-list { flex: 3; min-width: 300px; }

.article-card {
   background: white;
   padding: 25px;
   margin-bottom: 20px;
   border: 1px solid var(--border);
   border-left: 4px solid var(--primary);
}

.article-meta { font-size: 0.85rem; color: #777; margin-bottom: 10px; }
.read-more { color: var(--accent); text-decoration: none; font-weight: bold; font-family: sans-serif; }

/* Footer */
footer {
   background: #0b0b0b;
   color: #888;
   text-align: center;
   padding: 20px;
   font-size: 0.8rem;
   font-family: sans-serif;
}

.footer-top-dark {
  background: #0b0b0b;
  padding: 25px 0 15px;
  border-top: 1px solid #1f1f1f;
  font-family: "Georgia", "Times New Roman", serif;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
}

.footer-col h4 {
  color: #c9a86a;
  font-size: 17px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.footer-col a,
.footer-col span {
  display: block;
  color: #b5b5b5;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 6px;
}

.footer-col a:hover {
  color: #c9a86a;
}

.footer-col.right {
  text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  .footer-col.right {
    text-align: left;
  }
}

.footer-social-center {
  background: #0b0b0b;
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid #1f1f1f;
}

.footer-social-center a {
  color: #c9a86a;
  font-size: 18px;
  margin: 0 14px;
  transition: 0.3s ease;
}

.footer-social-center a:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

/* About Us Section */
.about-section {
    max-width: 900px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.about-section p {
    font-size: 1.05rem;
    color: #555;
    margin-top: 20px;
    line-height: 1.8;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
}

/* Center last row (2 cards) */
.team-grid .lawyer-card:nth-last-child(2),
.team-grid .lawyer-card:nth-last-child(1) {
    grid-column: span 1;
}

/* Lawyer Card */
.lawyer-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    max-width: 260px;
    transition: 0.3s;
}

.lawyer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.lawyer-card h3 {
    margin: 10px 0 5px 0;
    color: var(--primary);
}

.role {
    font-size: 0.9rem;
    color: #777;
}

/* Responsive */
@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
