/* =========================
   Root CSS Variables
========================= */
:root {
  --bg-gradient: linear-gradient(135deg, pink, #4365C8) !important;
  --bg-gradient-hover: linear-gradient(135deg, #4365C8, pink);
}
.bg-pink{
    background-color:#ec6fac !important;
    border-color:#ec6fac !important ;
}

.courseimg{
        height:150px;width:350px;
}

.text-justify{text-align:justify;}

.feature-sec ul li .active{color:green;font-weight: bold;}
.blog-content ul li{
        margin-left:20px;
        list-style-type: circle !important;
    }
    
.blog-content img {
    width: 100%;
}

/* Blockquote & pre only inside blog-content */
blockquote, pre {
    background-color: #f4f7fb;
    border-left: 4px solid #4a90e2;
    padding: 12px 16px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    white-space: pre-wrap;
    overflow-x: auto;
    border-radius: 10px;
    margin: 10px 0 20px 0;
    color: #222;
}

/* Lists only inside blog-content */
.blog-content li {
    list-style-type: none !important;
}

/* Paragraphs only inside blog-content */
/* .blog-content p {
    display: inline-block;
} */

/* Notes */
.note {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 10px 16px;
    border-radius: 10px;
    color: #0c5460;
    margin: 10px 0 20px 0;
}

/* Warnings */
.warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 16px;
    border-radius: 10px;
    color: #856404;
    margin: 10px 0 20px 0;
}

/* Headings only inside blog-content */
.blog-content h1,
.blog-content h2,
.blog-content h3 {
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
}

.blog-content h1 { font-size: 20px !important; }
.blog-content h2 { font-size: 18px !important; }
.blog-content h3 { font-size: 15px !important; }

.feature-bg{
    background: var(--bg-gradient);
    color:#fff;
}

.feature-bg:hover{
    background: var(--bg-gradient-hover);
}
.product:hover{
    background: var(--bg-gradient);
}

.feature-bg p{
    color:#000 !important;
}

.code-container {
  position: relative;
}
.copy-btn{
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

.try-btn {
  position: absolute;
  top: 0.5rem;
  right: 5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  background:#159f46 !important;
}

#modalEditor {
  width: 100%;
  height: 260px;
  background: #1e1e2f;
  color: #00ffae;
  border: 1px solid #2f2f45;
  border-radius: 10px;
  padding: 15px;
  font-family: monospace;
  font-size: 14px;
  resize: none;
  outline: none;
}

@media (max-width: 991px) {
    .header-navbar-rht {
        display: flex !important;
        gap: 10px;
        position:absolute;
        right:10px;
    }
    .navbar-toggler {
        border: none;
    }
    .navbar-toggler-icon {
        filter: invert(1);
    }
}

/* Start Top menu css */

/* Top Scroll Menu Wrapper */
.top-menu-wrapper {
  background-color: #282A35;
  position: fixed;
  top: 70px;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  z-index: 999;
}

/* Scroll Container */
.top-menu {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  white-space: nowrap;
  flex: 1;
  height: 100%;
}

.top-menu::-webkit-scrollbar {
  display: none;
}

/* Menu Links */
.top-menu a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  color: #f1f1f1;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s;
}

.top-menu a:hover {
  background-color: #000;
  color: #fff;
}

.top-menu a.active {
  background-color: #04AA6D;
  color: #fff;
  font-weight: 600;
}

/* Scroll Buttons */
.scroll-btn {
  background-color: #282A35;
  color: white;
  border: none;
  height: 100%;
  width: 40px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-btn:hover {
  background-color: #000;
}

/* Mobile View Fix */
@media (max-width: 768px) {

  .top-menu-wrapper {
    top: 50px;
    height: 38px;
  }

  .top-menu a {
    font-size: 12px;
    padding: 0 12px;
  }

  .scroll-btn {
    width: 35px;
    font-size: 16px;
  }
}

.main-nav li > ul{
  top:140%;
}

/* ******* End Top menu css ******* */

/* Developer Toolbox Section */
.dev-tools-section {
    padding: 0;
}

.dev-tools-card {
    background: #fffade;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f0eedf;
    border-bottom: none;
    padding: 30px;
    padding-bottom: 50px;
    overflow: hidden;
}

.dev-tools-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.dev-tools-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.dev-tools-title span {
    color: #00a651;
}

.dev-tools-subtitle {
    color: #666;
    font-size: 14px;
}

.dev-tools-nav {
    display: flex;
    gap: 8px;
}

.dev-tools-nav .nav-btn {
    position: relative;
    top: auto;
    transform: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f0;
    border: 1px solid #e8e6d9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #666;
}

.dev-tools-nav .nav-btn:hover {
    background: #00a651;
    border-color: #00a651;
    color: #fff;
}

.dev-tools-nav .nav-btn svg {
    width: 18px;
    height: 18px;
}

.dev-tools-slider-wrap {
    overflow: hidden;
    margin: 0 -5px;
}

.dev-tools-slider {
    overflow: visible;
    padding: 5px 5px;
}

.dev-tools-slider .swiper-slide {
    width: auto;
}

.dev-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 120px;
    background: #fff;
    border: 1px solid #e8e6d9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.dev-tool-card:hover {
    border-color: #00a651;
    box-shadow: 0 6px 20px rgba(0,166,81,0.12);
    transform: translateX(-2px);
}

.dev-tool-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.dev-tool-card h4 {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.dev-tool-view-all {
    background: linear-gradient(135deg, #00a651 0%, #059669 100%);
    border: none;
}

.dev-tool-view-all h4 {
    color: #fff;
}

.dev-tool-view-all:hover {
    box-shadow: 0 6px 20px rgba(0,166,81,0.25);
}

@media (max-width: 768px) {
    .dev-tools-header {
        flex-direction: column;
        gap: 16px;
    }
    .dev-tools-nav {
        align-self: flex-end;
    }
    .dev-tool-card {
        width: 140px;
        height: 110px;
    }
}

/* Coding Ground Section - Light Theme */
.coding-ground {
    padding: 0 0 60px 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.coding-ground-card {
    background: #fffef8;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f0eedf;
    border-top: none;
    padding: 50px 30px 50px 30px;
    position: relative;
    overflow: hidden;
}

.coding-ground-card::before {
    content: '';
    background-image: url('../img/bg-bottom.png');
    background-repeat: no-repeat;
    background-position: bottom -4rem right -3rem;
    position: absolute;
    inset: 0;
    opacity: .06;
    z-index: 0;
}

.coding-ground .container {
    max-width: 1200px;
    margin: 0 auto;
}

.coding-ground__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.coding-ground__image-wrapper {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #ccc;
}

.coding-ground__code-block {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 24px 30px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.8;
    position: relative;
}

.coding-ground__code-block .code-line {
    display: flex;
    align-items: center;
    color: #c8c8c8;
}

.coding-ground__code-block .code-line .edit-btn {
    margin-left: 30px;
}

.coding-ground__code-block .edit-btn {
    background: #00a651;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
}

.coding-ground__code-block .edit-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

.coding-ground__code-block .code-keyword { color: #cc99cc; }
.coding-ground__code-block .code-class { color: #99cc99; }
.coding-ground__code-block .code-string { color: #f2c68a; }
.coding-ground__code-block .code-comment { color: #7a8a7a; }
.coding-ground__code-block .code-method { color: #cc99cc; }
.coding-ground__code-block .code-text { color: #c8c8c8; }

.coding-ground__content h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.coding-ground__content h2 span {
    color: #00a651;
}

.coding-ground__start {
    color: #1a1a1a !important;
}

/* 2. Dark Theme: Force ONLY "Start Coding" to be White */
body.dark-theme .coding-ground__start {
    color: #ffffff !important;
}

body.dark-theme .coding-ground__image-wrapper{
    background: #383838ff;
    border: 0px solid #ccc;

}
/* 1. Target both Main Cards and Small Scrollable Cards */
body.dark-theme .card,
body.dark-theme .card-small {
    background-color: #2d2d2d;       /* Dark Grey Background */
    border: 1px solid #444;          /* Subtle Border for definition */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); /* Soft shadow */
}

/* 2. Change Text Color to White */
body.dark-theme .card h4,
body.dark-theme .card-small h4 {
    color: #e5e5e5;
}

/* 3. Make the "Count" text distinct (optional: keep green or make slightly brighter) */
body.dark-theme .card .count,
body.dark-theme .card-small span {
    color: #00a651;
    font-weight: 600;
}

/* 4. Hover Effects for Dark Theme */
body.dark-theme .card:hover,
body.dark-theme .card-small:hover {
    background-color: #333;          /* Slightly lighter on hover */
    border-color: #00a651;           /* Green border on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
}

/* 5. Fix the "Collapse" button text color in Dark Mode (it was getting overridden) */
body.dark-theme .collapse-btn h4 {
    color: #ff5252; /* Lighter red for better visibility on dark */
}
body.dark-theme .collapse-btn span {
    color: #ff8a80;
}
.coding-ground__subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.coding-ground__badge {
    display: inline-block;
    background: #00a651;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.coding-ground__description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 450px;
}

.coding-ground__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 400px;
}

.coding-ground__btn {
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.coding-ground__btn strong {
    font-weight: 700;
}

.coding-ground__btn--java {
    background: #e8f5e9;
    color: #2d4a2d;
    border: 1px solid #c8e6c9;
}
.coding-ground__btn--java:hover {
    background: #c8e6c9;
    transform: translateY(-2px);
}

.coding-ground__btn--python {
    background: #fff8e1;
    color: #4a4a20;
    border: 1px solid #ffecb3;
}
.coding-ground__btn--python:hover {
    background: #ffecb3;
    transform: translateY(-2px);
}

.coding-ground__btn--cpp {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}
.coding-ground__btn--cpp:hover {
    background: #bbdefb;
    transform: translateY(-2px);
}

.coding-ground__btn--html {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd9;
}
.coding-ground__btn--html:hover {
    background: #f8bbd9;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .coding-ground__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .coding-ground__content h2 {
        font-size: 28px;
    }
    .coding-ground__image-wrapper {
        order: 2;
    }
    .coding-ground__content {
        order: 1;
    }
}

/* ===== Desktop Header Layout Fix ===== */
@media (min-width: 992px) {

.header-nav .container-fluid {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;   /* prevent wrapping */
}

.navbar-header {
    flex: 0 0 auto;
}

.main-menu-wrapper {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.main-nav {
    display: flex;
    flex-wrap: nowrap;
}

.main-nav > li {
    white-space: nowrap;
}

.header-navbar-rht {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-navbar-rht .input-group {
    width: 200px;   /* control search width */
}
}

