/* Base styles */
:root {
    --primary-color: #6548A8;
    --secondary-color: #FF5656;
    --text-color: #212121;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
}

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

body {
   font-family: 'Poppins', sans-serif;
   line-height: 1.6;
   color: var(--text-color);
   background: linear-gradient(135deg, #8e44ad, #9b59b6);
   min-height: 100vh;
   margin: 0;
}

/* Container Layout */
.container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}

/* Search Section */
.search-section {
    text-align: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 40px 20px;
    background: inherit;
}

.search-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 30px;
    font-weight: 600;
}

.search-title span {
    color: #ffeb3b;
}

/* Search Bar */
.search-bar {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 40px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 10px 20px;
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0 auto 15px;
    padding: 0 20px;
    max-width: 1400px;
}

.category-button {
    padding: 15px 30px;
    border-radius: 10px;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-button:hover {
    transform: translateY(-3px);
}

.karnataka { background: #4285f4; }
.central { background: #ff9800; }
.tenth { background: #e91e63; }
.railway { background: #009688; }
.bank { background: #9c27b0; }
.twelfth { background: #f4511e; }

/* Social Grid */
.social-section {
  width: 100%;
  margin: 0;
  padding: 20px 0;
  background: transparent;
}

.social-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  margin: 0;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

/* Pill-style social buttons centered within the page */
.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto; /* size to content */
  padding: 14px 30px; /* slightly more horizontal padding */
  height: 44px; /* shorter, screenshot-like */
  border-radius: 22px; /* rounded pill */
  text-decoration: none;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.social-button > span { display:inline-flex; align-items:center; gap:16px; padding:0; width:auto; justify-content:center; }

/* On very small viewports */
@media (max-width: 480px) {
  .social-grid {
    gap: 15px;
  }
}

/* Make Facebook sit fully to the left visually and tighten spacing between others */
.social-button.facebook { margin-left: 6px; /* small offset from viewport padding */ }
.social-button:not(.facebook) { margin-left: 0; }

.social-button i { font-size:1.1rem; }

.social-button.telegram { background-color: #0088cc; }
.social-button.whatsapp { background-color: #25D366; }
.social-button.instagram { background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); }
.social-button.youtube { background-color: #FF0000; }
.social-button.facebook { background-color: #1877F2; }

.social-button:hover { transform: none; filter:brightness(0.96); }

/* Job Grid */
.job-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* fixed 4 cards per row on desktop */
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1200px) {
  .job-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .job-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .job-grid { grid-template-columns: 1fr; }
}

.job-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Font settings for Kannada */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Kannada:wght@400;500;700&display=swap');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Header */
header {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle-label span {
  width: 25px;
  height: 3px;
  background: #444;
  transition: 0.3s;
}

.nav-toggle:checked ~ nav ul {
  max-height: 300px;
  opacity: 1;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-direction: row;
}

nav ul li {
  position: relative;
}

nav a {
  color: #444;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 5px 0;
  position: relative;
}

nav a:hover {
  color: #6548A8;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #6548A8;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

  .logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff4b4b;
    text-align: center;
    line-height: 1.2;
  }
  
  .logo span {
    font-size: 1.2rem;
    display: block;
    color: #444;
    font-weight: 400;
    margin-top: 5px;
  }

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  .nav-toggle-label {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: none;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav ul li {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  .nav-toggle:checked ~ nav {
    display: block;
  }

  .logo {
    font-size: 1.8rem;
  }

  .logo span {
    font-size: 0.9rem;
  }
}

/* Legal Pages Styles */
.legal-main {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
}

.legal-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.legal-container h1 {
  color: #6548A8;
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.legal-content {
  color: #444;
}

.legal-content section {
  margin-bottom: 30px;
}

.legal-content h2 {
  color: #8e44ad;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.legal-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.legal-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.last-updated {
  color: #666;
  font-style: italic;
  margin-bottom: 30px;
}

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

/* Filters */
.filters {
    padding: 1rem 2rem;
    background: white;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

/* Job Card */
.job-card {
   background: #fff;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 4px 6px rgba(0,0,0,0.1);
   transition: transform 0.3s, box-shadow 0.3s;
}

/* header styles */
.card-header {
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:46px 20px;
  font-family: 'Poppins', 'Montserrat', system-ui, sans-serif;
  font-weight:700;
  color:#fff;
  font-size:36px;
  line-height:1.05;
  min-height:140px;        /* consistent header height */
  word-break:keep-all;     /* prevent mid-word breaks */
  white-space:normal;
}

/* color variants (map classes to site colors) */
.header-blue   { background:#4DA0F2; }
.header-orange { background:#F2A22B; }
.header-green  { background:#8CE04A; }
.header-red    { background:#D81B3C; }

/* responsive */
@media (max-width:900px){
  .card-header{ font-size:24px; padding:28px 12px; min-height:120px; }
}

.job-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

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

.job-card h3 {
   margin: 15px;
   font-size: 1.1rem;
}

.job-card h3 a {
   color: #333;
   text-decoration: none;
   transition: color 0.3s;
}

.job-card h3 a:hover {
   color: #ff4b4b;
}

.job-card p {
   margin: 15px;
   color: #666;
}

.job-card .badge {
   display: inline-block;
   padding: 5px 10px;
   border-radius: 8px;
   font-size: 0.8rem;
   font-weight: bold;
   margin: 15px;
   color: #fff;
}

.blue { background: #007bff; }
.green { background: #28a745; }
.orange { background: #ff7f0e; }
.red { background: #dc3545; }

.job-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.job-desc {
    margin-bottom: 1rem;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(300px, 1fr)); /* 4 columns with 300px min so cards fit nicely */
  gap: 1.5rem;
  align-items: start;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 20px;
}

/* Job action buttons (Apply / Home) */
.job-actions {
  display: flex;
  gap: 10px;
  padding: 12px 15px 18px 15px;
  align-items: center;
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.apply-btn { background: linear-gradient(90deg,#ff5a5a,#ff3b3b); }
.home-btn { background: rgba(0,0,0,0.08); color: #222; }

@media (max-width: 900px) {
  .job-actions { justify-content: center; }
}

@media (max-width: 1400px) {
  .job-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  .job-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .job-grid { grid-template-columns: 1fr; }
}


/* Buttons */
button {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: var(--secondary-color);
}

/* Admin Form */
.admin-main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.job-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

/* Friends Section */
.friends-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    height: fit-content;
}

/* Footer Styles */
/* About Page Styles */
.about-main {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-section {
    margin-bottom: 40px;
}

.about-container h1 {
    color: #6548A8;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.about-content h2 {
    color: #8e44ad;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

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

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

.services-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.services-list i {
    color: #8e44ad;
    font-size: 1.2rem;
}

/* Footer Styles */
.modern-footer {
  background: #0b1220; /* dark footer background */
  color: #ffffff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
  }

.footer-section {
    padding: 0 15px;
    max-width: 600px; 
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section h3 i {
  color: #FFD700;
}

.footer-section p {
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.footer-links a:hover {
  color: #FFD700;
  transform: translateX(5px);
}

.footer-social {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.2rem;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-icon.telegram { background-color: #0088cc; }
.social-icon.whatsapp { background-color: #25D366; }
.social-icon.instagram { background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); }
.social-icon.youtube { background-color: #FF0000; }
.social-icon.facebook { background-color: #1877F2; }

.social-text {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.social-text:hover {
  color: #FFD700;
}

.footer-bottom {
  background-color: rgba(0,0,0,0.3);
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-info { max-width: 1200px; margin: 0 auto; padding: 0 30px; display:flex; justify-content:space-between; align-items:center; gap:20px; }

.footer-info .left { text-align:left; }
.footer-info .right { text-align:right; }

.footer-links-bottom { display:flex; gap:18px; align-items:center; }

.footer-links-bottom a { color: rgba(255,255,255,0.85); text-decoration:none; font-weight:600; }

.footer-links-bottom a:hover { color:#ffd700 }

.footer-info p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.footer-links-bottom {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links-bottom a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.footer-links-bottom a:hover {
    color: #FFD700;
}

.footer-links-bottom a:not(:last-child):after {
    content: "•";
    position: absolute;
    right: -15px;
    color: rgba(255,255,255,0.4);
}

/* Pagination */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    gap: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination button {
    padding: 12px 24px;
    border: none;
    background: #fff;
    color: #444;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination button:hover:not(:disabled) {
    background: #ff4b4b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.pagination button:disabled {
    background: #ddd;
    cursor: not-allowed;
    color: #999;
}

.page-info {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    color: #444;
    font-weight: 500;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-numbers button {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-numbers button.active {
    background: #ff4b4b;
    color: #fff;
}

footer {
    margin-top: 50px;
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 0;
    }

    .container {
        padding: 15px;
    }

    .category-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }

    .category-button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .search-title {
        font-size: 2.5rem;
    }

    .search-section {
        padding: 30px 15px;
    }

    .social-grid {
        padding: 0 10px;
    }

    .social-button {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .footer-content {
        padding: 20px 15px;
    }

    .footer-info {
        padding: 0 15px;
    }

    .filters {
        flex-direction: column;
    }

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

    .footer-info {
        flex-direction: column;
        text-align: center;
    }

    .footer-links-bottom {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .category-buttons {
        grid-template-columns: 1fr;
        padding: 0 5px;
    }

    .search-title {
        font-size: 2rem;
    }

    .search-section {
        padding: 20px 10px;
    }

    .search-bar input {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .social-grid {
        padding: 0 5px;
    }

    .social-button {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .footer-content {
        padding: 15px 10px;
    }

    .footer-info {
        padding: 0 10px;
    }
}