/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #333;
}

/* Navbar */
.navbar {
    background: #002147;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
}

.navbar .menu {
    list-style: none;
    display: flex;
    gap: 15px;
}

.navbar .menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.navbar .menu li a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    display: flex;
    gap: 20px;
    padding: 0px;
    margin: 0px auto;
    max-width: 1400px;
}

.main-content {
    flex: 3;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.mock-test-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.mock-test-item {
    background: #e9ecef;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    color: #002147;
    font-weight: bold;
}

.mock-test-item:hover {
    background: #d6d8db;
}

/* Sidebar */
.sidebar {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.sidebar h2 {
    margin-bottom: 10px;
    color: #002147;
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

.ad-box {
    margin-top: 15px;
    background: #f1f1f1;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9em;
}

/* Responsive */

/* Main content styling */
.main-content {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', sans-serif;
}

.main-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 25px;
}

/* Mock test list */
.mock-test-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* Individual mock test item */
.mock-test-item {
    display: block;
    padding: 20px;
    background: #f9fafc;
    border: 1px solid #666666;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
}

.mock-test-item:hover {
    background: #ffffff;
    border-color: #0077ff;
    box-shadow: 0 6px 18px rgba(0, 119, 255, 0.12);
    transform: translateY(-3px);
}

/* Title */
.mock-test-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
}

/* Info section */
.mock-test-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    background: #eef2f7;
    padding: 8px 12px;
    border-radius: 10px;
}

.mock-test-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .main-content {
        padding: 15px;
    }

    .mock-test-title {
        font-size: 18px;
    }

    .mock-test-info {
        font-size: 13px;
    }
}
/* Sidebar container */
.sidebar {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Widget title */
.sidebar-widget .widget-title {
    margin-top: 50px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #0073e6;
    padding-bottom: 5px;
    margin-bottom: 10px;
    color: #333;
}

/* Job list */
.latest-jobs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-jobs li {
    margin: 6px 0;
}

/* Job links */
.latest-jobs li a {
    color: #0073e6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s ease;
}

.latest-jobs li a:hover {
    color: #005bb5;
    border-bottom: 1px solid #005bb5;
}

/* No jobs text */
.no-jobs {
    color: #777;
    font-style: italic;
}
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        order: 2;
    }
    .main-content {
        order: 1;
    }
    .main-content {
    max-width: 1100px;
    margin: 20px auto;

    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', sans-serif;
}
.main-content h1 {
 margin-top: 0px;
}
}.defence-container {
  
    margin: auto;
    margin-top: 0px;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.defence-container h1 {
    color: #1a4d8f;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #1a4d8f;
    padding-bottom: 5px;
}

.defence-container h2 {
    margin-top: 25px;
    color: #2e5c9a;

    padding-left: 10px;
    font-size: 1.3em;
}

.defence-container p {
    font-size: 16px;
    margin-bottom: 15px;
}

.defence-container ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.defence-container ul li {
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
}

.defence-container ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #2e5c9a;
}
/* Responsive Styles */
@media (max-width: 1024px) {
    .defence-container {
        padding: 15px;
    }
    .defence-container h1 {
        font-size: 2rem;
    }
    .defence-container h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .defence-container {
        padding: 12px;
    }
    .defence-container h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    .defence-container h2 {
        font-size: 1.3rem;
    }
    .defence-container p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 576px) {
    .defence-container {
        padding: 10px;
    }
    .defence-container h1 {
        font-size: 1.5rem;
        text-align: center;
        line-height: 1.4;
    }
    .defence-container h2 {
        font-size: 1.2rem;
        margin-top: 12px;
    }
    .defence-container p {
        font-size: 0.9rem;
        text-align: justify;
    }
}

@media (max-width: 400px) {
    .defence-container {
        padding: 8px;
    }
    .defence-container h1 {
        font-size: 1.3rem;
    }
    .defence-container h2 {
        font-size: 1.1rem;
    }
    .defence-container p {
        font-size: 0.85rem;
    }
}
.latest-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.latest-results li {
    margin-bottom: 10px;
}

.latest-results a {
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
    display: block;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
}

.latest-results a:hover {
    color: #005f8a;
    border-bottom-color: #0073aa;
}

.result-title {
    display: block;
    font-size: 16px;
}

.result-info {
    display: block;
    font-size: 13px;
    color: #555;
}
/* Container title */
.widget-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 12px;
    border-bottom: 2px solid #0077cc;
    padding-bottom: 6px;
    color: #0077cc;
}

/* Navigation list style */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    padding: 6px 0;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.nav-link:hover {
    color: #0077cc;
    border-bottom: 1px solid #0077cc;
}

.nav-link.disabled {
    color: #888;
    cursor: default;
}

/* Mobile responsive adjustments */
@media (max-width: 600px) {
    .widget-title {
        font-size: 1.2rem;
    }
    .nav-link {
        font-size: 0.95rem;
    }
}
#mobileSidebar {
  position: fixed;
  top: 0; left: 0; height: 100vh;
  width: 250px;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

#mobileSidebar.active {
  transform: translateX(0%);
}

.sidebar{
    margin: 0px !important;
}