@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Source+Sans+Pro:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary-navy: #05055f;
  --accent-red: #cd0808;
  --hover-red: #982704;
  --bg-gray: #f5f7fa;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --border-color: #dee2e6;
  --text-dark: #212529;
  --link-blue: #0000c0;
  --link-hover: #e10101;
}

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

body {
  font-family: 'Outfit', 'Source Sans Pro', sans-serif;
  background-color: var(--bg-gray);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: var(--link-blue);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header & Branding */
header {
  background-color: var(--accent-red);
  color: #ffffff;
  padding: 25px 0;
  text-align: center;
  border-bottom: 4px solid var(--primary-navy);
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

header h1 a {
  color: #ffffff;
  text-decoration: none;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-top: 5px;
}

/* Navbar */
nav {
  background-color: var(--primary-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

nav .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

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

nav ul li {
  position: relative;
}

nav ul li a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

nav ul li a:hover {
  background-color: var(--hover-red);
  color: #ffffff;
}

/* Dropdown Menu */
nav ul li .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-navy);
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

nav ul li:hover .sub-menu {
  display: block;
}

nav ul li .sub-menu li a {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

nav ul li .sub-menu li a:hover {
  background-color: var(--accent-red);
}

/* Search Box in Nav */
.nav-search {
  display: flex;
  align-items: center;
}

.nav-search input {
  padding: 8px 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
}

.nav-search button {
  padding: 8px 15px;
  border: none;
  background-color: var(--accent-red);
  color: white;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.nav-search button:hover {
  background-color: var(--hover-red);
}

/* Marquee / Flash News */
.marquee-container {
  background-color: #fff;
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  margin: 15px 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.marquee-label {
  background-color: var(--accent-red);
  color: white;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px;
  margin-right: 15px;
  white-space: nowrap;
}

.marquee-container marquee {
  font-weight: 600;
  color: var(--primary-navy);
}

.marquee-container marquee a {
  margin-right: 30px;
  color: var(--link-blue);
}

/* WhatsApp Channel Banner */
.whatsapp-banner {
  text-align: center;
  margin: 20px 0;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Important Cards Grid */
.important-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.important-card {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #ffffff;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.important-card:nth-child(2n) {
  background: linear-gradient(135deg, #89211b, #cd0808);
}

.important-card:nth-child(3n) {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.important-card:nth-child(4n) {
  background: linear-gradient(135deg, #f12711, #f5af19);
}

.important-card a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
}

.important-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Main Grids & Columns */
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.grid-col {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.grid-col-header {
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 12px 15px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.grid-col:nth-child(2) .grid-col-header {
  background-color: var(--accent-red);
}

.grid-col-list {
  padding: 15px;
  list-style: none;
  flex-grow: 1;
}

.grid-col-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #e9ecef;
  font-size: 0.9rem;
}

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

.grid-col-list a {
  font-weight: 500;
  color: var(--link-blue);
  text-decoration: underline;
}

.grid-col-list a:hover {
  color: var(--link-hover);
}

.view-more-container {
  padding: 12px 15px;
  background-color: #fafbfc;
  border-top: 1px solid #f1f3f5;
  text-align: right;
}

.view-more-btn {
  background-color: var(--primary-navy);
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s;
}

.grid-col:nth-child(2) .view-more-btn {
  background-color: var(--accent-red);
}

.view-more-btn:hover {
  background-color: var(--hover-red);
}

/* Post Info Page Details */
.post-detail-container {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--card-shadow);
  margin: 20px 0;
}

.post-header {
  border-bottom: 2px solid var(--primary-navy);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.post-header h2 {
  color: var(--primary-navy);
  font-size: 1.8rem;
  font-weight: 700;
}

.post-meta-info {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 5px;
}

/* Styled Table for Job details - Premium UI */
.job-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  font-size: 1rem;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.job-table th, .job-table td {
  border: 1px solid #eaeaea;
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
}

.job-table tr {
  transition: background-color 0.2s ease;
}

.job-table tr:hover {
  background-color: #fcfcfc;
}

.job-table th {
  background-color: #f4f6f8;
  font-weight: 700;
  color: var(--primary-navy);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.job-table .table-title {
  background: linear-gradient(135deg, var(--accent-red), #ff3b3b);
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  font-size: 1.4rem;
  padding: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
}

.job-table .table-subtitle {
  background: linear-gradient(135deg, var(--primary-navy), #0a0a9e);
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 12px;
  border: none;
}

.job-table td {
  color: #444;
  line-height: 1.7;
}

.job-table td h2, .job-table td h3 {
  color: var(--primary-navy);
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 700;
}

.job-table ul {
  padding-left: 20px;
  margin-top: 10px;
}

.job-table ul li {
  margin-bottom: 8px;
  position: relative;
}

/* FAQ Styling */
.faq-container {
  background: #fdfdfd;
  border: 1px solid #f1f1f1;
  border-radius: 6px;
  padding: 20px;
  margin-top: 15px;
}

.faq-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #e0e0e0;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item strong {
  color: var(--accent-red);
  font-size: 1.1rem;
}

/* SEO Landing Article Block */
.seo-article {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: var(--card-shadow);
}

.seo-article h2 {
  font-size: 1.8rem;
  color: var(--primary-navy);
  margin-bottom: 15px;
  border-left: 5px solid var(--accent-red);
  padding-left: 10px;
}

.seo-article h3 {
  font-size: 1.3rem;
  color: var(--hover-red);
  margin: 20px 0 10px 0;
}

.seo-article p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #495057;
  text-align: justify;
}

/* Footer Section */
footer {
  background-color: #1a1a1a;
  color: #dee2e6;
  padding: 40px 0 20px 0;
  margin-top: 55px;
  border-top: 4px solid var(--primary-navy);
}

.footer-social-wrapper {
  background-color: #242424;
  padding: 25px;
  border-radius: 6px;
  margin-bottom: 30px;
  text-align: center;
}

.footer-social-wrapper h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.footer-social-grid a {
  color: #4da3ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 4px;
  background-color: rgba(255,255,255,0.02);
  transition: all 0.2s;
}

.footer-social-grid a:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
}

.footer-meta {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

.footer-meta-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-meta-links a {
  color: #adb5bd;
  text-decoration: none;
}

.footer-meta-links a:hover {
  color: #ffffff;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
}

.pagination a, .pagination span {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-decoration: none;
  background-color: #fff;
  color: var(--primary-navy);
  font-weight: 600;
}

.pagination .active {
  background-color: var(--primary-navy);
  color: #fff;
  border-color: var(--primary-navy);
}

.pagination a:hover:not(.active) {
  background-color: #e9ecef;
}

/* Mobile Responsiveness */
@media screen and (max-width: 992px) {
  .section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
  
  nav .nav-container {
    flex-direction: column;
    padding: 10px 0;
    gap: 10px;
  }
  
  nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    text-align: left;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    padding-left: 10px;
  }

  nav ul::-webkit-scrollbar {
    height: 4px;
  }

  nav ul::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
  }

  nav ul li {
    flex: 0 0 auto;
  }
  
  nav ul li .sub-menu {
    position: static;
    width: 100%;
    box-shadow: none;
  }
  
  .nav-search {
    width: 100%;
    padding: 0 15px;
  }
  
  .nav-search input {
    flex-grow: 1;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  .important-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 600px) {
  .important-grid {
    grid-template-columns: 1fr;
  }
  
  .job-table {
    display: block;
    overflow-x: auto;
  }
  
  .job-table tr {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .job-table td, .job-table th {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  
  .job-table td[colspan="2"], .job-table th[colspan="2"] {
    width: 100% !important;
  }
}


/* Sidebar Layout */
.layout-with-sidebar {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 100%;
  margin: 0 auto;
}
.main-content {
  width: 100%;
  max-width: 1140px;
  flex-shrink: 0;
}
.sidebar-left, .sidebar-right {
  width: 160px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}
.sidebar-left { margin-right: 20px; }
.sidebar-right { margin-left: 20px; }
@media (max-width: 1550px) {
  .sidebar-left { margin-right: 10px; width: 140px; }
  .sidebar-right { margin-left: 10px; width: 140px; }
}
@media (max-width: 1400px) {
  .sidebar-left, .sidebar-right { display: none !important; }
}

/* Optimized Ad Containers */
.ad-container { position: relative; margin: 15px auto; max-width: 100%; text-align: center; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fdfdfd; padding: 15px 5px 5px 5px; border: 1px dashed #ced4da; border-radius: 4px; }
.ad-label { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: 0.65rem; color: #888; text-transform: uppercase; letter-spacing: 0.5px; background: #fdfdfd; padding: 0 5px; line-height: 1; }
.sidebar-left .ad-container, .sidebar-right .ad-container { border: none; padding: 10px 0 0 0; background: transparent; box-shadow: none; }
.sidebar-left .ad-label, .sidebar-right .ad-label { background: transparent; top: -15px; color: #aaa; }
