@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*, *::before, *::after{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

body {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

body img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1 {
  font-size: clamp(13px, 1.6vw, 28px);
}

h2 {
  font-size: clamp(15px, 3vw, 28px);
}

h3 {
  font-size: clamp(20px, 2.5vw, 28px);
}

p {
  font-size: clamp(16px, 2vw, 22px);
}

li {
  font-size: clamp(16px, 2vw, 22px);
}

@media (max-width: 995px) {
  .button {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    width: 1ch;
  }
}

button {
  font-size: clamp(14px, 1.8vw, 18px);
  padding: clamp(8px, 1.5vw, 14px) clamp(12px, 2vw, 20px);
  border-radius: 8px;
  cursor: pointer;
}

.log-in-body {
    background-image: url('images/landing-bg.png'); 
    background-size: 100vw 100vh; 
    background-position: center; 
    background-repeat: no-repeat; 
}

.header{
    background-color: rgb(255, 255, 255);
    height: 6vh;
}

.landing-content{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 100px;
}

main {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000000;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.landing-page-main {
    width: 100%;
    height: 90vh;
    overflow: hidden;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;

    background-image: url('images/landing-pic.png'); /* your image path */
    background-size: cover;       /* cover entire container */
    background-position: center;  /* center the image */
    background-repeat: no-repeat; /* prevent tiling */
}

/* Footer container */
.landing-footer {
    background-color: #FFD600;
    padding: 50px 20px; /* sufficient padding for cards and copyright */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* centers content vertically if needed */
    align-items: center;
    width: 100%;
    box-sizing: border-box; /* ensure padding doesn't overflow */
}

/* Container holding the 3 cards */
.footer-cards {
    display: flex;
    flex-wrap: wrap; /* Already present */
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 100px auto;
}

/* Individual card style */
.footer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 250px; /* allows cards to grow/shrink and wrap */
    margin: 0 auto;
}

/* Optional icon inside the card */
.footer-card img {
    width: 300px;
    margin-bottom: 10px;
}

.footer-card img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

/* Card headings */
.footer-card h2 {
    font-size: 1.2rem;
    margin: 15px 0 5px;
}

/* Card text */
.footer-card p {
    margin: 0;
    font-size: 0.95rem;
}

/* Copyright */
.landing-footer p {
    margin: 0;
}

.landing-footer p + p {
    margin-top: 25px;
}

.footer-copyright {
    padding-top: 50px;
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
}

body, input{
    font-family: "Poppins", sans-serif;
}

.box{
    position: relative;
    width: 100%;
    max-width: 1020px;
    height: 640px;
    background-color: #fff;
    border-radius: 3.3rem;
    box-shadow: 0 60px 40px -30px rgba(0, 0, 0, 0.27);
}

.landing-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 100px;
    position: relative;
    min-height: 50vh; /* flexible height instead of full viewport */
    overflow: hidden;
    padding: 2rem; /* optional spacing */
}

.landing-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.landing-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Makes the image cover the entire container */
    object-position: center; /* Centers the image */
    display: block;
}

.introduction-content{
    width: 40%;
    z-index: 2;
    margin-right: 20vh;
}

.introduction-content h4 {
    font-size: clamp(28px, 2.5vw, 22px);
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1200px) {
    .introduction-content {
        width: 45%;
        margin-right: 10vh;
    }
}

@media (max-width: 992px) {
    .landing-page-main {
        height: 100vh;
    }
    .landing-content {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 2rem;
        padding: rem;
    }
    .introduction-content {
        width: 90%;
        margin: 0;
    }
    .landing-bg img {
        object-position: center top;
    }
    .footer-cards {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
    }
    .footer-card {
        max-width: 300px;
    }
    .introduction-content h4 {
        font-size: clamp(38px, 2.5vw, 22px);
    }
    .introduction-content a {
        font-size: clamp(38px, 2.5vw, 20px);
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .introduction-content {
        width: 90%;
    }
    .footer-cards {
        display: flex;            /* ensure flex */
        flex-direction: column;   /* stack cards vertically */
        align-items: center;      /* center the cards */
        gap: 1.5rem;              /* spacing between cards */
        margin: 50px auto;
    }
    .footer-card {
        width: 90%;
        max-width: none;
    }
    .footer-card img {
        width: 80%;
    }
}

.inner-box{
    position: absolute;
    width: calc(100% - 4.1rem);
    height: calc(100% - 4.1rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forms-wrap{
    position: absolute;
    height: 100%;
    width: 45%;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    transition: .8s ease-in-out;
}

.carousel{
    position: absolute;
    height: 100%;
    width: 80%;
    left: 45%;
    top: 15%;
    border-radius: 2rem;
}

.log-in-form{
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    transition: opacity 0.02s 0.4s;
}

form.sign-up-form{
    opacity: 0;
    pointer-events: none;
}

.logo{
    display: flex;
    align-items: center;
}

img:not(.logo img) {
  max-width: 100%;
  height: auto;
}

.logo h4{
    font-size: 1.1rem;
    margin-top: -9px;
    letter-spacing: -0.5px;
    color: #151111;
}

.heading h2{
    font-size: 2.1rem;
    font-weight: 600;
    color: #151111;
}

.heading h6{
    color: #867777;
    font-weight: 400;
    font-size: 0.75rem;
    display: inline;
}

.toggle{
    color: #151111;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: 0.3s;
}

.toggle:hover{
    color: #F9BC60;
}

.input-wrap{
    position: relative;
    height: 37px;
    margin-bottom: 2rem;
}

.input-field{
    position: absolute;
    width: 100%;
    height: 100%;
    background: none;
    color: none;
    border: none;
    outline: none;
    border-bottom: 1px solid #bbb;
    padding: 0;
    font-size: .95rem;
    color: #151111;
    transition: 0.4s;
}

.credentials{
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #867777;
    pointer-events: none;
    transition: .4s;
}

.input-field.active{
    border-bottom-color: #151111;
}

.input-field.active + label{
    font-size: 0.75rem;
    top: -2px;
}

.log-btn {
    display: block;             /* Make the element block-level so margin auto works */
    max-width: 200px;           /* Adjust the max width as required */
    width: 100%;                /* Button takes up full available width up to max-width */
    margin: 0 auto 2rem auto;   /* Top margin 0, auto left/right (to center), 2rem bottom margin */
    text-align: center;         /* Center the text within the button */
    background-color: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 0.8rem;
    font-size: 0.85rem;
    padding: 12px 20px;         /* Provides adequate clickable area */
    text-decoration: none;      /* Ensures links have no underline */
    transition: background-color 0.3s ease;
}

.log-btn:hover {
    background-color: #7a7a7a;
}

.text{
    color: #867777;
    font-size: 0.7rem;
}

.text a{
    color: #867777;
    transition: .3s;
}

.text a:hover{
    color: #3f3e3e;
}

main.sign-up-mode .forms-wrap{
    left: 55%;
}

main.sign-up-mode .carousel{
    left: 0%;
}

main .log-in-form {
    opacity: 1;
    pointer-events: auto;
}
  
main.sign-up-mode .log-in-form {
    opacity: 0;
    pointer-events: none;
}
  
main .sign-up-form {
    opacity: 0;
    pointer-events: none;
}
  
main.sign-up-mode .sign-up-form {
    opacity: 1;
    pointer-events: auto;
}

/* User Page */
.user-img{
    width: 80px;
    border-radius: 100%;
}

.user-container{
    margin: 20px;
}

.student-container{
    margin: 20px;
}


.sidebar{
    position: absolute;
    height: 95vh;
    width: 120px;
    border-radius: 20px;
    background-color: rgb(0, 0, 0);
    padding: 0.4rem 0.8 rem;
    transition: all 0.5s ease;
}

.sidebar.active ~ .main-content{
    left: 250px;
    width: 85%;
}

.sidebar.active ~ .main-content2{
    left: 250px;
    width: 75%;
}

.sidebar.active{
    width: 350px;
}

.sidebar #btn{
    position: absolute;
    color: white;
    top: 1.2rem;
    left: 50%;
    font-size: 40px;
    line-height: 50px;
    transform: translateX(-50%);
    cursor: pointer;
}

.sidebar.active #btn{
    left: 90%;
}

.sidebar .top .logo{
    color: rgb(255, 255, 255);
    display: flex;
    height: 50px;
    width: 100%;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.5s ease;
}

.sidebar.active .top .logo{
    opacity: 1;
}

.top{
    margin: 20px;
}

.hamburger i{
    font-size: 40px;
}

.top .logo i{
    font-size: 2rem;
    margin: 20px;
    margin-right: 5px;
}

.logo span{
    font-size: 30px;
}

.user{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    transition: all 0.5s ease;
    margin-top: 50px;
}

.user2{
    display: flex;
    align-items: center;
    margin: .1rem 0;
    transition: all 0.5s ease;
}

.user p{
    color: white;
    opacity: 1;
}


.user-name {
  display: flex;
  flex-direction: column; /* stack p tags vertically */
  align-items: center;    /* center them horizontally */
  text-align: center;     /* center text inside */
  width: 100%;
  margin: 0;              /* remove extra spacing */
}

.user-name p {
  width: auto; /* let text size itself */
}

.bold{
    font-weight: 600;
}

.sidebar p{
    opacity: 0;
    font-size: inherit;
    transition: all 0.5s ease;
}

.sidebar.active p{
    opacity: 1;
}

.sidebar ul li{
    position: relative;
    list-style-type: none;
    height: 100px;
    width: 90%;
    margin: 0.5px auto;
    line-height: 50px;
}

.sidebar ul li a{
    color: white;
    display: flex;
    gap: 20px;
    font-size: 20px;
    align-items: center;
    text-decoration: none;
    border-radius: 0.8rem;
}

.sidebar ul li a.active,
.sidebar ul li a:hover {
    background-color: white;
    color: black;
}

.sidebar ul li a i{
    min-width: 50px;
    text-align: center;
    height: 50px;
    border-radius: 12px;
    line-height: 50px;
}

.sidebar .nav-item{
    opacity: 0;
    transition: all 0.5s ease;
}

.sidebar.active .nav-item{
    opacity: 1;
}

.sidebar.active .user{
    margin-left: 20px;
}

.sidebar ul li .tooltip{
    position: absolute;
    left: 180px;
    top: 25%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0.5rem 0.8rem rgba(0, 0, 0, 0.2);
    border-radius: .6rem;
    padding: .4rem 1.2rem;
    line-height: 1.8rem;
    z-index: 20;
    opacity: 0;
}

.sidebar ul li:hover .tooltip{
    opacity: 1;
}

.sidebar.active ul li .tooltip{
    opacity: 0;
}

.logout-btn {
    position: absolute;
    bottom: 50px;  /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    display: block;
    margin: 0 auto;  /* Centers the button horizontally */
    background-color: red;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.logout-btn:hover {
    background-color: darkred;
}

/* Remove white background hover from logout-link */
.logout-link:hover {
    background: none !important;
}

.main-content{
    position: relative;
    min-height: 1000vh;
    top: 50px;
    left: 30px;
    transition: all 0.5s ease;
    width: 95%;
    margin-left: 150px;
}

.main-content2{
    position: relative;
    min-height: 1000vh;
    top: 50px;
    left: 30px;
    transition: all 0.5s ease;
    width: 85%;
    margin-left: 150px;
    height: calc(100vh - 50px); /* full viewport minus top offset */
    overflow-y: auto;           /* vertical scroll */
    overflow-x: hidden;         /* hide horizontal scroll */
    padding-left: 10px;
    padding-right: 10px;
}

/* Default hamburger button hidden */
.hamburger-btn {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 35px;
  color: black;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 1440px) {
  .sidebar.active ~ .main-content2{
    width: 70%;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* hide sidebar offscreen */
    width: 250px;
    height: 100%;
    transition: left 0.3s ease;
    z-index: 1000;
    margin-top: 20px;
    height: 95vh;
  }

  .sidebar.active {
    left: 0; /* slide in */
    margin-left: 20px;
    margin-top: 20px;
    height: 95vh;
  }

  /* target hamburger-btn when sidebar is active */
  .sidebar.active ~ .hamburger-btn {
    display: none;
  }
  
  .sidebar.active ~ .main-content{
    left: 30px;
    width: calc(100% - 250px);
  }

  .sidebar.active ~ .main-content2{
    left: 30px;
    width: calc(100% - 250px);
  }

  .sidebar.active ~ .user-container{
    left: 30px;
    width: calc(100% - 250px);
  }

  .student-container {
    padding: 50px;
    border-radius: 20px;
    margin-left: 150px;
    transition: all 0.5s ease;
    position: relative;
    border: 1px solid black;
    height: 94vh;
    box-sizing: border-box;
    overflow-y: auto;
  }

  .main-content {
    margin-left: 0 !important; /* take full width */
    width: 100% !important;
  }

  .main-content2 {
    margin-left: 0 !important; /* take full width */
    width: 90% !important;
  }

  .user-container {
    margin-left: 0 !important;  /* do not move */
    width: 100% !important;     /* full width */
  }

  .hamburger-btn {
    display: block; /* show hamburger */
  }
}


/* Admin Page */
.admin-navs ul li {
    margin-bottom: 10px;
}

/* Admin - Students Page */
th {
    vertical-align: middle;
    user-select: none;
    background-color: #FFD21E;
}

.table-container {
    margin-top: 10px;
    max-width: 100%;
    max-height: 80vh;  /* Adjust as needed */
    overflow-x: auto;
    overflow-y: auto;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.table-container::-webkit-scrollbar {
    display: none;
}

.table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Force equal column sizing and prevent expansion */
}

.table th, .table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

.table thead th {
    overflow: visible;
}

.table thead {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

/* Style for the edit link */
a.view-link{
    color: #07dd00;          /* Blue color */
    padding: 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

a.view-link:hover {
    color: #059e00;
}

a.edit-link {
    color: #3498db;          /* Blue color */
    padding-right: 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hover effect for the edit link */
a.edit-link:hover {
    color: #2980b9;
}

/* Style for the delete link */
a.delete-link {
    color: #e74c3c;          /* Red color */
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hover effect for the delete link */
a.delete-link:hover {
    color: #c0392b;
}

/* Adjust icon size for both links */
a.edit-link i,
a.delete-link i,
a.view-link i {
    font-size: 24px; /* Change this value to the desired size */
}

.student-container::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}
.sidebar.active ~ .student-container {
    margin-left: 380px;
}

.profile-container {
    display: flex;
    align-items: center;
    padding: 50px;
    border-radius: 20px;
    margin-left: 150px;
    transition: all 0.5s ease;
    position: relative;
    min-height: 94vh;  /* Changed from height: 94vh; */
    box-sizing: border-box;
}
.sidebar.active ~ .profile-container {
    margin-left: 380px;
}




/* Admin - Add account */
.custom-alert {
    background-color: #ffcc00; /* Yellow background */
    color: black;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    position: relative;
    font-size: 16px;
    transition: opacity 0.5s ease-in-out; /* Smooth fade */
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
}

.close-btn:hover {
    color: red;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 350px;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.popup h2 {
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
}

.popup input,
.popup select,
.popup button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.popup input {
    text-transform: capitalize;
}

.popup input[type="email"] {
    text-transform: none !important;
}

.popup select {
    background: white;
    cursor: pointer;
}

.popup button {
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.popup button:hover {
    background: #0056b3;
}

.close-btn {
    cursor: pointer;
    float: right;
    font-size: 20px;
    color: #333;
}

.close-btn:hover {
    color: #ff0000;
}


@media (max-width: 1133px) {
    .box{
        height: auto;
        max-width: 550px;
        overflow: hidden;
    }
    
    .inner-box{
        position: static;
        transform: none;
        width: revert;
        height: revert;
        padding: 2rem;
    }

    .forms-wrap{
        position: revert;
        width: 100%;
        height: auto;
    }

    form{
        max-width: revert;
        padding: 1.5rem 2.5rem 2rem;
        transition: transform .8s ease-in-out, opacity .45s linear;
    }

    .heading{
        margin: 2rem 0;
    }

    form.sign-up-form{
        transform: translateX(100%);
    }

    main.sign-up-mode form.log-in-form{
        transform: translateX(-100%);
    }

    main.sign-up-mode form.sign-up-form{
        transform: translateX(0%);
    }

    .carousel{
        display: none;  /* Hides the login image */
    }

    .text-slider{
        width: 100%;
    }
}


@media (max-width: 530px){
    main{
        padding: 1rem;
    }

    .box{
        border-radius: 2rem;
    }

    .inner-box{
        padding: 2rem;
    }

    .carousel{
        padding: 1.5rem 1rem;
        border-radius: 1.6rem;
    }

    .text-wrap{
        margin-bottom: 1rem;
    }

    .text-group h2{
        font-size: 1.2rem;
    }

    form{
        padding: 2rem 2rem 1.5rem;
    }
}

/* User - Home Page */
.menu{
    margin-top: 50px;
}

nav{
    margin-top: 100px;
    font-size: 20px;
}

.profile{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    color: white;
    width: 150%;
}

.nav-content{
    margin-top: 30px;
}

.navs{
    text-decoration: none;
    color: white;
    padding: 10px;
    transition: background 0.3s, color 0.3s;
}

.log-out{
    margin-top: 300px;
    margin-left: 70px;
}

.admin-page{
    width: 100%;
    min-height: 100vh;
    background-color: #004643;
    display: flex;
    padding: 2rem;
}

.menu{
    margin-right: 100px;
}

.box1{
    width: 100%;
    background-color: #fff;
    margin-top: 20px;
    margin-bottom: 10px;
    margin-right: 10px;
    border-radius: 3.3rem;
    padding: 3rem;
}

.inner-box1{
    width: 100%;
}

/* User - Quarters Page */
.quarters-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; 
    height: 85vh;
    max-width: 90%;
    margin-right: 50px;
    padding: 20px; 
    gap: 20px;
    box-sizing: border-box; 
}

.quarter-card {
    border-radius: 20px;
    border: 3px solid black; 
    background-color: white;
    width: 300px;
    height: 300px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quarter-content h1 {
    top: 20px;
    left: 20px;
    position: absolute;
    text-align: center; 
}

.quarter-card:hover {
    transform: scale(1.05); 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); 
}

.quarter-link {
    color: black;
    text-decoration: none; 
}

/* User - Profile Page */
.profile-container{
    justify-content: center;
    align-items: center; 
    height: 85vh;
    max-width: 90%;
    margin-right: 50px;
    padding: 20px; 
    gap: 20px;
    box-sizing: border-box; 
}

.profile-upper{
    border-radius: 20px;
    border: 3px solid black; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.profile-upper-section{
    display: flex;
    align-items: center;
}

.logout-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.logout-btn:hover {
    background-color: darkred;
}



/* Student Page */
.student-tabs{
    display: flex;
    align-items: center;
}

.add-new, .import-students{
    color: white; 
    text-decoration: none; 
    background-color: rgb(0, 0, 0);
    padding: 10px;
    margin-left: 30px;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
}

.row{
    display: flex;
}

/* Add New Student */
.container{
    width: 100%;
}

.form-control{
    width: 250px;
    height: 100%;
    background: none;
    color: none;
    border: none;
    outline: none;
    border-bottom: 1px solid #bbb;
    padding: 0;
    font-size: .95rem;
    color: #151111;
}

.col, .em{
    margin-top: 50px;
}

.gen{
    margin-bottom: 20px;
    margin-top: 10px;
}

.save{
    color: white; 
    text-decoration: none; 
    background-color: rgb(0, 102, 255);
    outline: none;
    border: none;
    padding: 10px;
    margin-left: 150px;
    font-size: 16px;
}

.cancel{
    color: white; 
    text-decoration: none; 
    background-color: rgb(255, 0, 0);
    padding: 8px;
    margin-left: 30px;
}

.delete{
    color: white; 
    text-decoration: none; 
    background-color: rgb(0, 102, 255);
    outline: none;
    border: none;
    padding: 10px;
    margin-left: 150px;
    font-size: 16px;
}

.inner-box2{
    margin-top: 100px;
    display: flex;
    justify-content: center;
}

/* Lessons Page */
.lesson-body{
    overflow: auto;
}

.lesson-header {
    background-color: black;
    height: 10vh;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 20px; 
    top: 0; 
}

.lesson-header a.button {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 20px;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
}

.lesson-header h1 {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; 
}

.lesson-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers all child elements */
    justify-content: center;
    width: 100%;
}

.lesson-read p{
    width: 90%;
    font-size: 25px;
    text-align: justify;
}

.lesson-read p b{
    width: 70%;
    font-size: 35px;
}

.lesson-read {
    height: 100vh; /* Full screen height */
    width: 100vw;  /* Full screen width */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center;     /* Center horizontally */
    gap: 5vh;
    padding: 2rem;
    box-sizing: border-box;
}

.lesson-intro-container{
    display: flex;
    align-items: center;
}

.lesson-intro {
    position: relative; /* allows absolute positioning of child */
    border: 2px solid black;
    padding: 20px;
    padding-top: 100px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;     
    text-align: center;
    box-shadow: 10px 10px 0 black;
    border-radius: 20px;
}

.lesson-intro img:first-of-type {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100px;
    padding: 10px;
    height: auto;
    pointer-events: none;
}

.lesson-intro img:nth-of-type(2) {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 100px;
    padding: 10px;
    height: auto;
    pointer-events: none;
}

.lesson-intro img:nth-of-type(3) {
    position: absolute;
    bottom: -25px;
    left: 50px;
    width: 150px;
    height: auto;
    pointer-events: none;
}

.lesson-intro p {
  margin-top: 20px;
  text-align: center;
  font-size: clamp(13px, 2vw, 24px);
  width: 70%;
}

.lesson-intro h2 {
  font-size: clamp(16px, 2vw, 28px);
}

.lesson-pic img{
  height: 400px;
  margin-left: 50px;
  margin-right: 400px;
}

@media (max-width: 1172px) {
  .lesson-pic {
    display: none;
  }
}

.sread {
    background-color: white;
    padding: 20px 30px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sread:hover {
    background-color: rgb(0, 0, 0);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: #FFD21E;
}


.lessons-title{
    margin-bottom: 20px;
}

.lessons-category-container {
    height: 80vh; /* Full screen height */
    width: 100%;
    margin: auto; /* Horizontal centering with fixed width */
    display: flex;
    flex-direction: column;
    align-items: center;    /* Horizontal alignment of children */
    justify-content: center; /* Vertical centering of children */
    gap: 2rem;
    padding: 2rem;
    box-sizing: border-box;
}

.lessons-category{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.lesson-btns{
    background-color: white;
    padding: 20px 30px;
    font-size: clamp(15px, 2.5vw, 25px);
    width: 80%;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid black;
    transition: all 0.3s ease-in-out;
}

.lesson-btns:hover {
    background: linear-gradient(90deg, #ffdf60, #FFD21E); /* Blue gradient */
    color: white;
    border-color: transparent;
    box-shadow: 0px 4px 15px rgba(0, 114, 255, 0.4);
}

#netmod-container,
#neteq-container,
#netcom-container,
#typenet-container,
#nettools-container,
#netmat-container,
#fives-container,
#netper-container,
#vom-container,
#sare-container {
  background-image: url('images/lessons-bg.png');
  background-color: #fffadc;
  background-size: cover;      /* makes it cover the whole area */
  background-position: center; /* centers the image */
  background-repeat: repeat;
}

.typenet{
    padding: 15vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 50px;
    
}

/* 
.close-btn {
    cursor: pointer;
    font-size: 20px;
    color: red;
    float: right;
    margin-left: 10px;
    top: 20%;
    right: 1%;
} */

.netmod{
    padding: 15vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typenet{
    padding: 15vh 5vh 15vh 5vh;
    gap: 50px;
}

.nettools, .netmat, .neteq, .netcom, .fives, .netper{
    padding: 5vh 5vh 5vh 5vh;
}

.netmod-title {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 10vh;
  padding: 15px;
  width: 100%;
  border: 2px solid black;
  display: flex;
  justify-content: center;  /* horizontally center h1 block */
  gap: 10px;
}

.topic{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  z-index: 10000;
}

.netmod-title h1 {
  cursor: pointer;
  color: rgb(0, 0, 0);
  margin: 0;          /* remove default margins */
  font-size: clamp(15px, 2.5vw, 20px);
}

.netmod-title img:first-of-type {
  margin-right: auto;  
}

.netmod-title img:last-of-type {
  margin-left: auto;    /* push to far right */
}

.netmod {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to a new row */
    gap: 30px; /* Space between items */
    justify-content: center; /* Ensures alignment */
    align-items: stretch;
}

.netmod-item {
    background-color: white;
    position: relative; /* allows absolute positioning of pin */
    border: 2px solid black;
    border-radius: 20px;
    padding: 50px 30px 30px; /* extra top padding so text doesn't clash with pin */
    display: flex;
    flex-direction: column; 
    width: calc(50% - 20px);
    font-size: 20px;
    gap: 30px;
    flex: 1;
    align-items: center;
    text-align: center;
    box-shadow: 10px 10px 0 black;
    min-width: 300px;
}

.netmod-item img:first-of-type {
    position: absolute;
    top: -40px;   /* half outside the box */
    left: -40px;   /* sticks to upper-left corner */
    width: 100px;  /* adjust size as needed */
    height: auto;
    pointer-events: none;
}

.netmod-item img:nth-of-type(2) {
    position: absolute;
    top: 15px;    /* fully inside */
    right: 15px;  /* upper-right corner */
    width: 100px;  /* adjust size */
    height: auto;
    pointer-events: none;
}

.netmod-item img:nth-of-type(3) {
    position: absolute;
    bottom: 25px; /* star fully inside */
    left: 15px;
    width: 100px;
    height: auto;
    pointer-events: none;
    display: none;
}

/* 🔥 Fix for images colliding */
.netmod-item img {
    max-width: 350px; /* Prevents image from being too large */
    height: auto; /* Keeps the aspect ratio */
    object-fit: contain; /* Ensures full image is shown without cutting */
    display: block; /* Prevents unwanted inline spacing */
    flex-shrink: 0; /* Ensures images DO NOT shrink */
}

.netmod-item p {
    width: 70%;/
}

.netmod-summary {
    background-color: #333333; /* Dark grey background */
    padding: 20px;
    border-top: 2px solid #dee2e6; /* Light grey border for subtle separation */
    color: #ffffff; /* White text color for contrast and readability */
    font-size: 16px; /* Slightly smaller font size for a more compact look */
    line-height: 1.5; /* Maintained line height for readability */
    text-align: center; /* Centers the text within the summary */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1); /* Optional: adds shadow to the top edge */
    display: flex; /* Enables flexbox layout */
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
}

.netmod-summary p {
    width: 80%; /* Adjust the width of the paragraph to your preference */
    margin: 0 auto; /* Auto margins for horizontal centering */
    padding: 20px;
}

.static-ip-table{
  margin: 0 auto;
  padding: 20px;
}

/* Title styles for typenet, nettools, netmat, neteq, and netcom */
.typenet-title,
.nettools-title,
.netmat-title,
.neteq-title,
.netcom-title,
.fives-title,
.netper-title {
    background-color: black;
    height: 10vh;
    width: 100%;
    position: sticky; /* Sticks to the top */
    top: 0;
    z-index: 1000;
}

.typenet-title h1,
.nettools-title h1,
.netmat-title h1,
.neteq-title h1,
.netcom-title h1,
.fives-title h1,
.netper-title h1 {
    cursor: pointer;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10vh;
    margin-top: 0;
    top: 0;
    font-size: 30px;
}

/* Container styles for typenet, nettools, netmat, neteq, and netcom */
.typenet,
.nettools,
.netmat,
.neteq,
.netcom,
.fives,
.netper {
    display: flex;
    flex-wrap: wrap; /* Wraps items to new rows */
    gap: 40px;       /* Space between cards */
    align-items: stretch;
    justify-content: center; /* Center cards horizontally */
}

/* Card (item) styles for typenet, nettools, netmat, neteq, and netcom */
.typenet-item,
.nettools-item,
.netmat-item,
.neteq-item,
.netcom-item,
.fives-item,
.netper-item {
    background-color: white;
    position: relative; /* allows absolute positioning of pin */
    border: 2px solid black;
    border-radius: 20px;
    padding: 50px 30px 30px; 
    display: flex;
    flex-direction: column; 
    width: calc(50% - 20px);
    font-size: 20px;
    gap: 30px;
    align-items: center;
    text-align: center;
    box-shadow: 10px 10px 0 black;
    min-width: 300px;
}

.netcab-item1,
.netcab-item2,
.netcab-item3 {
  background-color: white;
    display: flex;
    position: relative; /* allows absolute positioning of pin */
    border: 2px solid black;
    border-radius: 20px;
    padding: 50px 50px 50px; 
    display: flex;
    width: calc(80% - 20px);
    font-size: 20px;
    align-items: center;
    box-shadow: 10px 10px 0 black;
    min-width: 300px;
}

.routset-container{
  display: flex;
    flex-wrap: wrap; /* Wraps items to new rows */
    gap: 40px;       /* Space between cards */
    justify-content: center; /* Center cards horizontally */
    padding: 5vh 20vh;
}

.routset-item{
  background-color: white;
  flex: 1 1 100%;   /* take full width on each row */
  max-width: 100%;  /* prevent shrinking */
    position: relative; /* allows absolute positioning of pin */
    border: 2px solid black;
    border-radius: 20px;
    padding: 50px 30px 30px; 
    padding-left: 200px;
    display: flex;
    flex-direction: column; 
    width: calc(50% - 20px);
    font-size: 20px;
    gap: 30px;
    box-shadow: 10px 10px 0 black;
}

.routset-item img:first-of-type {
    position: absolute;
    top: 20px;   /* half outside the box */
    left: 0px;
    width: 80px;  /* adjust size as needed */
    height: auto;
    pointer-events: none;
}

.routset-item img:nth-of-type(2){
    position: absolute;
    top: 25px;    /* fully inside */
    right: 15px;  /* upper-right corner */
    width: 100px;  /* adjust size */
    height: auto;
    pointer-events: none;
}

.netcab-divider1{
  display: flex;
  height: 50px; 
  align-items: center;
}

.netcab-left2-title{
  display: flex;
  align-items: center;
  padding-bottom: 30px;
}

.netcab-left2-title img{
  margin-left: 15px;
  width: 150px;
}

.netcab-left3-title {
  padding-bottom: 50px;
  padding-top: 50px;
  text-align: center;
  width: 70%;
  margin: 0 auto;   /* centers the whole block */
}

.netcab-left3-title h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.netcab-left3-title p {
  line-height: 1.6;
}

.netcab-left4,
.netcab-left5 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* space between cards */
  justify-content: center; /* centers rows */
}

.netcab-left4-steps,
.netcab-left5-steps{
  flex: 1 1 calc(50% - 20px); /* two per row */
  max-width: 700px;           /* optional cap */
  min-width: 250px;           /* keeps readable size */
  position: relative; 
  border: 2px solid black;
  background-color: white;
  border-radius: 20px;  
  padding: 50px 30px 30px; 
  display: flex;
  flex-direction: column; 
  width: calc(50% - 20px);
  font-size: 20px;
  gap: 30px;
  box-shadow: 10px 10px 0 black;
}

.stepz{
  display: flex;
}

.netcab-left5-steps p{
}

.netcab-left5-steps h2{
  margin-left: 50px;
}

.netcab-left5-steps p{
  margin-left: 50px;
  margin-bottom: 50px;
}


/* Upper-left (numbers) */
.netcab-left5-steps img:first-of-type {
  position: absolute;
  top: 20px;
  left: 0px;
  width: 70px;
  height: auto;
  pointer-events: none;
}

/* Upper-right (yellow line) */
.netcab-left5-steps img:nth-of-type(2) {
  position: absolute;
  top: 30px;
  right: 20px;
  width: 250px;
  height: auto;
  pointer-events: none;
}

/* Lower-left (dots) */
.netcab-left5-steps img:last-of-type {
  position: absolute;
  bottom: 5px;
  left: 30px;
  width: 100px;
  height: auto;
  pointer-events: none;
}

.netcab-left4-divider{
  display: flex;
  flex-direction: column;
}

.netcab-left4-divider img{
  width: 150px;
}

.netcab-item3 img:first-of-type {
  position: absolute;
  bottom: 40px;   /* half outside the box */
  left: 40px;     /* sticks to lower-left corner */
  width: 100px;    /* adjust size */
  height: auto;
  pointer-events: none;
}

.netcab-item3 img:nth-of-type(2) {
  position: absolute;
  top: 15px;       /* fully inside */
  right: 15px;     /* upper-right corner */
  width: 150px;    /* adjust size */
  height: auto;
  pointer-events: none;
}

.fives-item img:first-of-type,
.netper-item img:first-of-type {
    position: absolute;
    top: 30px;   /* half outside the box */
    left: 0px;
    width: 100px;  /* adjust size as needed */
    height: auto;
    pointer-events: none;
}

.fives-item img:nth-of-type(2){
    position: absolute;
    top: 25px;    /* fully inside */
    right: 15px;  /* upper-right corner */
    width: 100px;  /* adjust size */
    height: auto;
    pointer-events: none;
}

/* Responsive images for all cards */
.typenet-item img,
.nettools-item img,
.netmat-item img,
.neteq-item img,
.netcom-item img,
.fives-item img,
.netper-item img {
    max-width: 400px;
    height: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    border-radius: 8px;
}

.routset{
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

/* Section layout */
.bael, .eyfa, .redu, .hehe, .bocl, .fawo, .fisp {
  display: none; /* hidden by default */
  margin-top: 30px;
}

/* Title for each section */
.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  margin: 0 auto 25px auto; /* centers it */
  margin-top: 50px;
  margin-bottom: 50px;
  padding: 12px 20px;
  border: 2px solid black;
  border-radius: 12px;
  background: #fff59d;
  display: block; /* full-width block to center */
  width: fit-content; /* shrink around content */
  box-shadow: 6px 6px 0 black;
  letter-spacing: 1px;
}

/* Container that holds the two cards */
.section-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 30px;
  gap: 30px;
  flex-wrap: wrap; 
}

.back-btn {
  display: block;
  margin: 25px auto 0 auto;
  margin-bottom: 20px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid black;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  box-shadow: 5px 5px 0 black;
  transition: transform 0.2s ease;
}

.back-btn:hover {
  transform: scale(1.05);
}

.netper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: stretch; /* buttons take full width */
}

.netper-btn {
  padding: 15px 20px;
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid black;
  border-radius: 12px;
  background: white;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 60%;       
  margin: 0 auto; 
}

.netper-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 black;
}

.netcom-item img:first-of-type,
.typenet-item img:first-of-type,
.netper-item img:first-of-type {
    position: absolute;
    top: -40px;   /* half outside the box */
    left: -40px;   /* sticks to upper-left corner */
    width: 100px;  /* adjust size as needed */
    height: auto;
    pointer-events: none;
}

.netcom-item img:nth-of-type(2),
.typenet-item img:nth-of-type(2),
.netper-item img:nth-of-type(2) {
    position: absolute;
    top: 15px;    /* fully inside */
    right: 15px;  /* upper-right corner */
    width: 100px;  /* adjust size */
    height: auto;
    pointer-events: none;
}

.demo-demo{
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.typenet-vid-container,
.netmod-vid-container {
    background-color: #000000; /* Light neutral background */
    border-radius: 20px;
    margin: 0 auto;
    width: 60%;             /* Makes it span full width */
}

.netmod-vid-content{
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers video horizontally */
  justify-content: center;
  margin: 0 auto;
  text-align: center;    /* centers the text */
  margin-top: 50px;
}

.typenet-vid-content h2,
.netmod-vid-content h2 {
  padding: 20px;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #ffffff;
    line-height: 1.6;
}

.typenet-vid-content video,
.netmod-vid-content video {
     width: 80%;
  max-width: 1000px;      /* optional: limit size on big screens */
  border-radius: 8px;      /* Rounded corners for the video */
}

.netcab-utp{
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 1300px; /* Adjust this value as needed */
    width: 90%;
}

.netcab-utp img {
    width: 100%;
    height: auto;
    display: block;
}

.netcab-eth{
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 1300px; /* Adjust this value as needed */
    width: 90%;
}

.netcab-eth img {
    width: 100%;
    height: auto;
    display: block;
}

  /* CSS */
.three-rs-section {
    padding: 4rem 2rem;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
  }
  
  .three-rs-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
  }

  .three-rs-wrapper img {
    border-radius: 20px;
    padding: 20px;
  }
  
  .three-rs-wrapper h2 {
    font-size: 2.5rem;
    color: #d4a017;
    margin-bottom: 1rem;
  }
  
  .three-rs-wrapper .intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
  }
  
  .rs-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
  }
  
  .rs-card {
    background: #ffffff;
    border-left: 5px solid #d4a017;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 2rem;
    width: 300px;
    transition: transform 0.3s ease;
    text-align: left;
  }
  
  .rs-card:hover {
    transform: translateY(-5px);
  }
  
  .rs-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #222;
  }
  
  .rs-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
  }
  
  .closing-note {
    font-size: 1.1rem;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
  }
  



/* CSS */
.tech-network-section {
    background: #0a0a0a;
    color: #e0e0e0;
    padding: 4rem 2rem;
    font-family: 'Courier New', Courier, monospace;
  }
  
  .tech-network-wrapper {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .tech-network-wrapper h2 {
    font-size: 2.4rem;
    text-align: center;
    color: #ffee00;
    margin-bottom: 1rem;
  }
  
  .tech-desc {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 3rem;
    color: #aaa;
  }
  
  .tech-card {
    background: #121212;
    border-left: 4px solid #ffd900;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,255,209,0.2);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
  }
  
  .tech-card:hover {
    transform: translateY(-5px);
  }
  
  .tech-card h3 {
    font-size: 1.5rem;
    color: #ffee00;
    margin-bottom: 1rem;
  }
  
  .tech-card p,
  .tech-card ul {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
  }
  
  .tech-card ul {
    padding-left: 1.5rem;
  }
  
  .tech-card li {
    margin-bottom: 0.5rem;
  }
  


  /* CSS */
.ip-compare-section {
    padding: 4rem 2rem;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
  }
  
  .ip-compare-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }
  
  .ip-compare-wrapper h2 {
    font-size: 2.2rem;
    color: #000000;
    margin-bottom: 3rem;
  }
  
  .ip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
  }
  
  .ip-card {
    background: #ffffff;
    border-top: 5px solid #ffee00;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
  }
  
  .ip-card:hover {
    transform: translateY(-5px);
  }
  
  .ip-card h3 {
    font-size: 1.6rem;
    color: #222;
    margin-bottom: 1rem;
  }
  
  .ip-card ul {
    list-style-type: disc;
    padding-left: 1.2rem;
  }
  
  .ip-card li {
    margin-bottom: 0.6rem;
    color: #444;
    line-height: 1.6;
  }
  
  /* IPv4 Classes Section */
.ip-classes {
    margin-top: 4rem;
    text-align: left;
  }
  
  .ip-classes h3 {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 1rem;
  }
  
  .ip-classes p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 2rem;
  }
  
  /* Center and adjust size of the image */
  .ipv4-img {
    max-width: 100%;   /* Adjust width as per your need */
    height: auto;     /* Maintain aspect ratio */
    margin: 0 auto;   /* Center the image */
    display: block;   /* Ensure it's a block-level element */
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  }


.network-mask-container {
  max-width: 1000px;
  border: 2px solid black;
  box-shadow: 10px 10px 0 black;
  margin: auto;
  padding: 3rem 1.5rem;
  font-family: 'Segoe UI', sans-serif;
  color: #1f1f1f;
  margin-top: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mask-defaults,
.mask-example,
.mask-insights,
.mask-footer {
  width: 100%;
  max-width: 800px;
}

.binary-pairs,
.mask-tags {
  justify-content: center;
}

.mask-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.mask-header h2 {
  font-size: 2.5rem;
  color: #d4a017;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mask-header p {
  font-size: 1.15rem;
  color: #555;
  max-width: 700px;
  margin: auto;
  line-height: 1.6;
}

.mask-defaults h3 {
  font-size: 1.6rem;
  color: #222;
  margin-bottom: 1.2rem;
}

.mask-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.mask-tag {
  background: #fdf8e7;
  padding: 0.9rem 1.4rem;
  border-left: 5px solid #d4a017;
  border-radius: 8px;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(212, 160, 23, 0.1);
  transition: transform 0.2s;
}

.mask-tag:hover {
  transform: translateY(-2px);
}

.mask-example {
  margin-top: 3rem;
}

.mask-example h3 {
  font-size: 1.6rem;
  color: #222;
  margin-bottom: 1rem;
}

.mask-example p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}

.binary-pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.binary-box {
  font-family: 'Courier New', monospace;
  background: #eaf1f8;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1.05rem;
  border: 1px solid #c5d4e2;
  text-align: center;
  overflow-x: auto;
  white-space: nowrap;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.05);
}

.mask-insights {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2b2b2b;
}

.mask-insights p {
  margin: 0.7rem 0;
}

.net {
  color: #d4a017;
  font-weight: 600;
}

.host {
  color: #0066cc;
  font-weight: 600;
}

.mask-footer {
  margin-top: 3rem;
  text-align: center;
  color: #666;
  font-size: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .binary-pairs {
    flex-direction: column;
  }

  .mask-header h2 {
    font-size: 2rem;
  }

  .mask-tag {
    width: 100%;
  }

  .binary-box {
    font-size: 0.95rem;
  }
}




  

.ip-conversion-section {
  padding: 4rem 2rem;
  font-family: 'Segoe UI', sans-serif;
}

.ip-conversion-container {
  max-width: 1100px;
  margin: 0 auto;
  color: #222;
}

.ip-conversion-container h2 {
  font-size: 2.3rem;
  text-align: center;
  color: #d4a017;
  margin-bottom: 3rem;
}

.ip-card {
  background: #ffffff;
  border-left: 6px solid #d4a017;
  padding: 1.8rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.ip-card:hover {
  transform: translateY(-5px);
}

.ip-card h3 {
  font-size: 1.4rem;
  color: #444;
  margin-bottom: 1rem;
}

.ip-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  word-wrap: break-word;
}

.ip-card code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #d48806;
}

/* Responsive font scaling */
@media (max-width: 768px) {
  .ip-conversion-container h2 {
    font-size: 1.9rem;
  }

  .ip-card h3 {
    font-size: 1.2rem;
  }

  .ip-card p {
    font-size: 0.95rem;
  }
}








.subnetting-section {
  background: linear-gradient(to bottom right, #fdfdfd, #f4f6f8);
  padding: 4rem 1.5rem;
  font-family: 'Segoe UI', sans-serif;
  color: #2b2b2b;
}

.sub-container {
  max-width: 1100px;
  margin: auto;
}

.subcont-h2 {
  font-size: 2.5rem;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 2rem;
}

.intro {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #444;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.benefits-list li {
  background: #fff8dc;
  border-left: 4px solid #d4a017;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.concept-box {
  background: #eaf6ff;
  border-left: 4px solid #007acc;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.method-heading {
  font-size: 1.8rem;
  color: #000;
  margin-bottom: 1.5rem;
}

.steps {
  display: grid;
  gap: 1.5rem;
}

.step {
  background: #f2f2f2;
  border-left: 4px solid #009688;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  font-size: 1.05rem;
}

.note {
  margin-top: 2rem;
  font-size: 1rem;
  background: #fffbec;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid #d17b00;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .subcont-h2 {
    font-size: 2rem;
  }

  .benefits-list li,
  .concept-box,
  .step,
  .note {
    font-size: 1rem;
    padding: 1rem;
  }

  .method-heading {
    font-size: 1.5rem;
  }
}








.network-topology-section {
    font-family: 'Segoe UI', sans-serif;
    color: #333;
  }
  
  .netw-container {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .network-topology-section h2 {
    font-size: 2.8rem;
    color: #000000;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
  }
  
  .intro-text {
    margin-top: 2.5rem;
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 2.5rem;
    border: 2px solid black;
  }
  
  .topology-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .topology-box {
    background-color: white;
    padding: 1.75rem;
    border-radius: 20px;
    border: 2px solid black;
    box-shadow: 10px 10px 0 black;
    text-align: center;
  }
  
  .importance-section {
    margin: 0 auto;
    margin-top: 50px;
    width: 55%;
  }
  
  .importance-section h3 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
  }
  
  .importance-section p {
    background-color: white;
    padding: 1.75rem;
    border-radius: 20px;
    border: 2px solid black;
    box-shadow: 10px 10px 0 black;
    text-align: center;
  }


.topology-cards {
  gap: 40px;
  padding: 80px 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.topology-card,
.topology-adv,
.topology-dis,
.netdec-item,
.nic-card {
  background-color: white;
  padding: 1.75rem;
  border-radius: 20px;
  border: 2px solid black;
  box-shadow: 10px 10px 0 black;
  text-align: center;
}

.topology-advdis{
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.device-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  padding: 2rem;
}


.nic-card-container{
  display: grid;
  text-align: center;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  padding: 2rem;
}

.nic-container{
  background-color: white;
  top: 0;
  height: 10vh;
  padding: 15px;
  width: 80%;
  border: 2px solid black;
  display: flex;
  border-radius: 25px;
  justify-content: center;  
  align-items: center;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
  margin: 50px auto;
}

.sd-item {
  background-color: white;
    position: relative; /* allows absolute positioning of pin */
    border: 2px solid black;
    border-radius: 20px;
    padding: 50px 30px 30px; /* extra top padding so text doesn't clash with pin */
    display: flex;
    flex-direction: column; 
    width: calc(50% - 20px);
    font-size: 20px;
    align-items: center;
    text-align: center;
    box-shadow: 10px 10px 0 black;
    min-width: 300px;
}

.sd-item img:first-of-type {
    position: absolute;
    top: -40px;   /* half outside the box */
    left: -40px;   /* sticks to upper-left corner */
    width: 100px;  /* adjust size as needed */
    height: auto;
    pointer-events: none;
}

.sd-item img:nth-of-type(2) {
    position: absolute;
    top: 15px;    /* fully inside */
    right: 15px;  /* upper-right corner */
    width: 100px;  /* adjust size */
    height: auto;
    pointer-events: none;
}

.sd-item img:nth-of-type(3) {
    display: none;
    position: absolute;
    bottom: 25px; /* star fully inside */
    left: 15px;
    width: 100px;
    height: auto;
    pointer-events: none;
}

.sd-container{
  background-color: white;
  top: 0;
  height: 15vh;
  width: 80%;
  border: 2px solid black;
  display: flex;
  border-radius: 25px;
  justify-content: center;  
  align-items: center;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
  margin: 50px auto;
  padding: 50px;
}

.static-desc{
  background-color: white;
  top: 0;
  height: 30vh;
  padding: 15px;
  width: 80%;
  border: 2px solid black;
  border-radius: 25px;
  justify-content: center;  
  align-items: center;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
  margin: 0 auto;
  margin-bottom: 100px;
  padding: 70px;
}



/* Container for the IP Addresses Section */
.ip-addresses-section {
  padding: 30px;
  line-height: 1.8;
  color: #333;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: 1100px;
}

/* Highlighted terms (yellow background) */
.ip-addresses-section span {
  background-color: #fff59d;
  font-weight: bold;
  padding: 0 4px;
  border-radius: 3px;
}

/* Heading Styling */
.ip-addresses-section h3,
.ip-addresses-section h4,
.ip-addresses-section h5 {
  color: #222;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.ip-addresses-section h3 {
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 3px solid #ddd;
  padding-bottom: 10px;
}

.ip-addresses-section h4 {
  font-size: 24px;
  font-weight: 500;
  margin-top: 20px;
}

.ip-addresses-section h5 {
  font-size: 20px;
  font-weight: 400;
  color: #555;
}

/* Table Styling */
.ip-addresses-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.ip-addresses-section table th,
.ip-addresses-section table td {
  padding: 15px 20px;
  border: 1px solid #ccc;
  text-align: left;
}

.ip-addresses-section table th {
  background-color: #f0f0f0;
  font-weight: 600;
  color: #444;
}

.ip-addresses-section table td {
  font-size: 16px;
  color: #555;
}

/* Adding hover effect on table rows */
.ip-addresses-section table tr:hover {
  background-color: #f9f9f9;
}

/* List Styling for Pros and Cons */
.ip-addresses-section ul {
  margin-top: 20px;
  padding-left: 30px;
  list-style-type: disc;
}

.ip-addresses-section ul li {
  font-size: 16px;
  margin-bottom: 12px;
  color: #555;
}

/* Tip Box for important note */
.ip-addresses-section .tip-box {
  margin-top: 30px;
  background-color: #fff59d;
  padding: 15px;
  border-left: 5px solid #fbc02d;
  font-style: italic;
  font-size: 16px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Pros and Cons List Styling */
.ip-addresses-section .pros-cons-container {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 30px;
}

/* Pros and Cons List */
.ip-addresses-section .pros-cons-list {
  width: 48%;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Heading for Pros and Cons */
.ip-addresses-section .pros-cons-list h5 {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #444;
  margin-bottom: 20px;
}

/* List Items */
.ip-addresses-section .pros-cons-list ul {
  padding-left: 25px;
  list-style-type: none;
}

.ip-addresses-section .pros-cons-list ul li {
  font-size: 16px;
  color: #555;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icon Styling */
.ip-addresses-section .pros-cons-list ul li .icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

/* Green Icon for Pros */
.ip-addresses-section .pros-cons-list .pros li .icon {
  background-color: #4caf50;
  color: white;
}

/* Red Icon for Cons */
.ip-addresses-section .pros-cons-list .cons li .icon {
  background-color: #f44336;
  color: white;
}

/* Hover Effect for List Items */
.ip-addresses-section .pros-cons-list ul li:hover {
  background-color: #f5f5f5;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

/* Responsive Design for Pros and Cons Section */
@media (max-width: 768px) {
  .ip-addresses-section .pros-cons-container {
    flex-direction: column;
    gap: 20px;
  }

  .ip-addresses-section .pros-cons-list {
    width: 100%;
  }

  .ip-addresses-section .pros-cons-list h5 {
    font-size: 18px;
  }

  .ip-addresses-section .pros-cons-list ul li {
    font-size: 14px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .ip-addresses-section {
    padding: 20px;
    margin: 10px;
  }

  .ip-addresses-section h3 {
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
  }

  .ip-addresses-section h4 {
    font-size: 20px;
  }

  .ip-addresses-section h5 {
    font-size: 18px;
  }

  .ip-addresses-section table th,
  .ip-addresses-section table td {
    padding: 10px;
  }

  .ip-addresses-section table {
    font-size: 14px;
  }

  .ip-addresses-section ul {
    padding-left: 20px;
  }

  .ip-addresses-section .tip-box {
    font-size: 14px;
  }
}







/* Container for typenet section */
.typenet-container {
  color: #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  background-color: #fdfdfd;
}

/* Highlight important terms */
.typenet-container span {
  background-color: #fff59d;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Section title styling */
.typenet-title h1 {
  font-size: 26px;
  margin-bottom: 15px;
  cursor: pointer;
  border-bottom: 2px solid #ccc;
  padding-bottom: 8px;
}

/* Command line example box */
.command-box {
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Courier New', Courier, monospace;
  padding: 15px;
  border-radius: 5px;
  margin: 15px 0;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
  overflow-x: auto;
}

/* Label before command box */
.command-label {
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #444;
}

/* Example tables for clarity */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  margin-bottom: 30px;
}

.info-table th,
.info-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.info-table th {
  background-color: #f1f1f1;
  font-weight: bold;
}

.info-table td span {
  display: inline-block;
  padding: 2px 4px;
  background-color: #fff59d;
  border-radius: 3px;
}






.cli-list {
  list-style: disc;
  margin: 10px 0 20px 30px;
  color: #444;
  font-size: 1rem;
}

.cli-box {
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Courier New', monospace;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  font-size: 1rem;
}

.cli-header {
  color: #4ec9b0;
  margin-bottom: 4px;
}

.cli-line {
  color: #9cdcfe;
  margin-left: 20px;
}

.cli-output {
  color: #d4d4d4;
  margin-left: 20px;
  margin-top: 10px;
  white-space: pre-line;
}

/* Responsive tweaks */
@media screen and (max-width: 768px) {
  .cli-box {
    padding: 15px;
    font-size: 0.9rem;
  }

  .cli-line,
  .cli-output {
    margin-left: 15px;
  }

  .cli-list {
    font-size: 0.95rem;
    margin-left: 20px;
  }
}

@media screen and (max-width: 480px) {
  .cli-box {
    padding: 12px;
    font-size: 0.65rem;
  }

  .cli-line,
  .cli-output {
    margin-left: 12px;
  }

  .cli-list {
    font-size: 0.9rem;
    margin-left: 15px;
  }
}








/* Container */
.router-section {
  color: #222;
  padding: 1.5rem 1.25rem;
  max-width: 720px;
  margin: 0 auto;
  background-color: #fff;
  line-height: 1.6;
}

/* Intro paragraph */
.router-intro {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: #333;
}

/* Steps list */
.router-steps-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* spacing between cards */
}

/* Each step as card */
.router-step {
  position: relative;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.25rem 1.75rem 1.75rem 3.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  counter-increment: step-counter;
}

/* Step number badge inside card */
.router-step::before {
  content: counter(step-counter);
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  background: #eee;
  color: #555;
  font-weight: 700;
  font-size: 1.3rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  line-height: 2rem;
  text-align: center;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Step heading */
.router-step h3 {
  margin: 0 0 0.75rem 0;
  font-weight: 700;
  font-size: 1.15rem;
  color: #111;
}

/* Step details list */
.router-step ul {
  padding-left: 1.4rem;
  margin: 0;
  color: #444;
  font-size: 0.95rem;
  list-style-type: disc;
}

/* Tip text */
.router-tip {
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.6rem;
  color: #666;
  padding-left: 1.2rem;
}

/* Inline code style */
code {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0.15rem 0.4rem;
  font-family: Consolas, monospace;
  font-size: 0.9rem;
  color: #333;
}

/* Keyboard key style */
kbd {
  background-color: #eee;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}









/* Section heading */
.ip-addresses-section h3 {
  font-weight: 700;
  font-size: 1.25rem;
  color: #111;
  margin-bottom: 1rem;
}

/* Paragraph */
.ip-addresses-section p {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 2rem;
}


/* Steps container */
.ap-step-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  counter-reset: step-counter;
  padding-left: 0;
  margin: 0;
}

/* Each step card */
.ap-step {
  position: relative;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.25rem 1.75rem 1.75rem 3.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  counter-increment: step-counter;
}

/* Step number badge */
.ap-step::before {
  content: counter(step-counter);
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  background: #eee;
  color: #555;
  font-weight: 700;
  font-size: 1.3rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  line-height: 2rem;
  text-align: center;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Step heading */
.ap-step h4 {
  margin: 0 0 0.75rem 0;
  font-weight: 700;
  font-size: 1.15rem;
  color: #111;
}

/* Step paragraph */
.ap-step p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}






.cli-section {
  max-width: 1300px;
  background-color: white;
  margin-right: auto;
  margin-left: auto;
  margin-top: 24px;   /* add this */
  margin-bottom: 32px;
  padding: 20px 40px;
  border-radius: 20px;
  border: 2px solid black;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  width: 80%;
  line-height: 1.6;
  transition: background-color 0.25s ease;
  box-shadow: 10px 10px 0 black;
}

.cli-section p {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #444;
}

.cli-section ol {
  padding-left: 25px;
  margin-bottom: 20px;
  color: #444;
  font-size: 1rem;
}

.cli-section ol li {
  margin-bottom: 10px;
}

.cli-box {
  background: #000000;
  border: 2px solid black;
  border-radius: 20px;
  padding: 14px 18px;
  margin: 12px 0 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #ffffff;
  box-sizing: border-box;
  overflow-x: auto;
}

.cli-header {
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.cli-line {
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.cli-output {
  white-space: pre-wrap;
  line-height: 1.3;
  color: #ffffff;
}









/* Card style */
.switch-section .card {
  background-color: #fff;
  border-radius: 8px;
  padding: 22px 28px;
  margin: 24px auto 28px;    /* 24px top, auto horizontal, 28px bottom */
  max-width: 800px;          /* prevent stretching beyond 600px */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #ddd;
  transition: box-shadow 0.3s ease;
}

.switch-section .card h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  border-bottom: 3px solid #fff59d;
  padding-bottom: 6px;
  color: #222;
}

.switch-section p, 
.switch-section ul {
  font-size: 1rem;
  color: #444;
}

.switch-section ul {
  margin-left: 20px;
  list-style-type: disc;
}

.switch-section ul li {
  margin-bottom: 8px;
  line-height: 1.4;
}










.firewall-section .card {
  background-color: #fff;
  border-radius: 8px;
  padding: 22px 28px;
  margin: 24px auto 28px;  /* margin-top and bottom, center horizontally */
  max-width: 800px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #ddd;
  transition: box-shadow 0.3s ease;
}

.firewall-section .card h3 {
  margin-bottom: 14px;
  color: #222;
  font-weight: 600;
  border-bottom: 2px solid #fff59d;
  padding-bottom: 6px;
}

.firewall-section ul {
  padding-left: 20px;
  color: #444;
  font-size: 1rem;
  list-style-type: disc;
  margin-bottom: 0;
}

.firewall-section ul li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.firewall-section ol {
  padding-left: 20px;
  margin-top: 12px;
}

.firewall-section ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #444;
}











.netmat-container .card {
  background-color: #fff;
  border-radius: 8px;
  padding: 22px 28px;
  margin: 24px auto 28px;  /* margin-top and bottom, center horizontally */
  max-width: 800px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #ddd;
  transition: box-shadow 0.3s ease;
}

.netmat-container .card h3 {
  margin-bottom: 14px;
  color: #222;
  font-weight: 600;
  border-bottom: 2px solid #fff59d;
  padding-bottom: 6px;
}

.netmat-container ul li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.netmat-container ol {
  padding-left: 20px;
  margin-top: 12px;
}

.netmat-container ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #444;
}

.netmat-container p {
  color: #444;
  line-height: 1.5;
  margin-bottom: 14px;
}


/* Card styling – reuse from netmat */
#nettools-container .card {
  background-color: #fff;
  border-radius: 8px;
  padding: 22px 28px;
  margin: 24px auto 28px;
  max-width: 800px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #ddd;
  transition: box-shadow 0.3s ease;
}

/* Header style inside card */
#nettools-container .card h3 {
  margin-bottom: 14px;
  color: #222;
  font-weight: 600;
  border-bottom: 2px solid #fff59d;
  padding-bottom: 6px;
}

/* Paragraph text in card */
#nettools-container .card p {
  color: #444;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Highlighted terms */
#nettools-container .highlight {
  background-color: #fff59d;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 500;
}

#nettools-container ul li {
  margin-bottom: 6px;
  line-height: 1.4;
}

#nettools-container ul ul {
  list-style-type: circle;
  margin-top: 6px;
}

#nettools-container ul ul li {
  font-size: 0.95rem;
}






.elel-container {
  background-color: white;
  top: 0;
  height: 10vh;
  padding: 15px;
  width: 100%;
  border: 2px solid black;
  display: flex;
  border-radius: 25px;
  justify-content: center;  
  align-items: center;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
}

.typecur-header,
.acdc-header {
  position: sticky;        /* Sticks on scroll */
  top: 0;
  width: 100%;             /* Full width */
  background-color: #fff;  /* White background */
  border-top: 1px solid #000;    /* Thin black top border */
  border-bottom: 1px solid #000; /* Thin black bottom border */
  padding: 28px 20px;      /* Padding */
  display: flex;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;  /* Ensure padding doesn't affect width */
}

.typecur-header h1,
.acdc-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.tein-container {
  background-color: white;
  top: 0;
  height: auto;
  width: 100%;
  border: 2px solid black;
  display: flex;
  flex-direction: column;
  border-radius: 25px;
  justify-content: center;  
  align-items: center;
  text-align: center;
  box-shadow: 10px 10px 0 black;
  padding-top: 100px;
  padding-bottom: 100px;
}

.tein-container2 {
  background-color: white;
  top: 0;
  height: auto;
  padding: 25px;
  width: 50%;
  border: 2px solid black;
  display: flex;
  flex-direction: column;
  border-radius: 25px;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
  padding-top: 50px;
  padding-bottom: 50px;
  padding-left: 50px;
}

.cktdia-container{
  background-color: white;
  top: 0;
  height: 10vh;
  padding: 15px;
  width: 70%;
  border: 2px solid black;
  display: flex;
  flex-direction: column;
  border-radius: 25px;
  justify-content: center;  
  align-items: center;
  text-align: center;
  margin: 40px auto;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
  padding-top: 100px;
  padding-bottom: 100px;
}

.tein-container p {
    width: 70%;
}

.vom-item {
    background-color: white;
    position: relative; 
    border: 2px solid black;
    border-radius: 20px;
    padding: 50px 30px 30px; 
    display: flex;
    flex-direction: column; 
    width: calc(50% - 20px);
    gap: 30px;
    box-shadow: 10px 10px 0 black;
    min-width: 300px;
    margin-left: 20px;
    margin-top: 50px;
}

.vom-item p{
    padding-left: 50px;
}

.vom-item img:first-of-type {
    position: absolute;
    top: 30px;   /* half outside the box */
    left: 0px;
    width: 70px;  /* adjust size as needed */
    height: auto;
    pointer-events: none;
}

.vom-item img:nth-of-type(2){
    display: none;
    position: absolute;
    top: 25px;    /* fully inside */
    right: 15px;  /* upper-right corner */
    width: 100px;  /* adjust size */
    height: auto;
    pointer-events: none;
}

.vom-item ul li {
    margin-left: 50px;  
}

.vom {
    margin-bottom: 60px;
    display: flex;
    flex-wrap: wrap; /* Wraps items to new rows */
    gap: 40px;       /* Space between cards */
    justify-content: center; /* Center cards horizontally */
}

.sare {
  background-color: white;
  top: 0;
  height: 70vh;
  padding: 55px;
  width: 70%;
  border: 2px solid black;
  display: flex;
  border-radius: 25px;
  justify-content: center; 
  align-items: center;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
  padding-top: 100px;
  padding-bottom: 100px;
  margin: 50px auto;
}

.sare2 {
  background-color: rgb(0, 0, 0);
  top: 0;
  height: 70vh;
  padding: 15px;
  width: 70%;
  border: 2px solid black;
  display: flex;
  border-radius: 25px;
  justify-content: center; 
  align-items: center;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
  padding-top: 100px;
  padding-bottom: 100px;
  margin: 50px auto;
}

.sare2 p{
  color: white;
  text-align: center;
  margin: 0 auto;
}

.sare-img img {
  width: 100%;       
  width: 500px;  
  height: auto;      
}

.components-container{
  background-color: white;
  top: 0;
  height: 50vh;
  padding: 15px;
  width: 100%;
  border: 2px solid black;
  display: flex;
  border-radius: 25px;
  justify-content: center;  
  align-items: center;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
}

.components-img {
  display: none;
  justify-content: center;
}


.components-img img {
  width: 100%;   /* takes full width of its flex box */
  max-width: 550px; /* optional cap */
  height: auto;  /* keeps proportions */
  border-radius: 10px;
}

.components-content{
  flex: 1; /* takes available space */
  padding: 20px;
}

.teca-container{
  background-color: white;
  top: 0;
  height: 50vh;
  padding: 15px;
  width: 100%;
  border: 2px solid black;
  display: flex;
  border-radius: 25px;
  justify-content: center;  
  align-items: center;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
}

.teca-content{
  width: 70%;
  padding-left: 50px;
}

.teca-content p{
  padding-left: 50px;
}

.teca-container2{
  background-color: white;
  top: 0;
  height: 50vh;
  padding: 15px;
  width: 100%;
  border: 2px solid black;
  display: flex;
  border-radius: 25px;
  justify-content: center;  
  align-items: center;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
}

.teca-content2{
  width: 70%;
  padding-left: 50px;
}

.teca-content2 p{
  padding-left: 50px;
}

.teca-content2 p:nth-of-type(3),
.teca-content2 p:nth-of-type(4) {
  padding-left: 70px;
}

.tecaa{
  padding: 4vh 15vh;
}

.teca-item {
  background-color: white;
    position: relative; /* allows absolute positioning of pin */
    border: 2px solid black;
    border-radius: 20px;
    height: 30vh;
    padding: 50px 30px 30px; /* extra top padding so text doesn't clash with pin */
    display: flex;
    flex-direction: column; 
    width: calc(50% - 20px);
    font-size: 20px;
    gap: 30px;
    align-items: center;
    box-shadow: 10px 10px 0 black;
    min-width: 300px;
}

.teca-item img:first-of-type {
    position: absolute;
    top: -40px;   /* half outside the box */
    left: -40px;   /* sticks to upper-left corner */
    width: 100px;  /* adjust size as needed */
    height: auto;
    pointer-events: none;
}

.teca-item img:nth-of-type(2) {
    position: absolute;
    top: 15px;    /* fully inside */
    right: 15px;  /* upper-right corner */
    width: 100px;  /* adjust size */
    height: auto;
    pointer-events: none;
}

.teca-item img:nth-of-type(3) {
    position: absolute;
    bottom: 25px; /* star fully inside */
    left: 15px;
    width: 100px;
    height: auto;
    pointer-events: none;
}

.ohmm-item {
  background-color: white;
    position: relative; /* allows absolute positioning of pin */
    border: 2px solid black;
    border-radius: 20px;
    height: 40vh;
    padding: 50px 30px 30px; /* extra top padding so text doesn't clash with pin */
    display: flex;
    flex-direction: column; 
    width: calc(50% - 20px);
    font-size: 20px;
    gap: 30px;
    align-items: center;
    box-shadow: 10px 10px 0 black;
    min-width: 300px;
}

.ohmm-item img:first-of-type {
    position: absolute;
    top: -40px;   /* half outside the box */
    left: -40px;   /* sticks to upper-left corner */
    width: 100px;  /* adjust size as needed */
    height: auto;
    pointer-events: none;
}

.ohmm-item img:nth-of-type(2) {
    position: absolute;
    top: 15px;    /* fully inside */
    right: 15px;  /* upper-right corner */
    width: 100px;  /* adjust size */
    height: auto;
    pointer-events: none;
}

.ohmm-item h3:first-of-type{
  display: flex;
  justify-content: center;
  padding: 10px;
}

.defect-container {
  background-color: white;
  top: 0;
  height: 10vh;
  padding: 15px;
  width: 70%;
  border: 2px solid black;
  display: flex;
  flex-direction: column;
  border-radius: 25px;
  justify-content: center;  
  align-items: center;
  text-align: center;
  margin: 0 auto;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
  padding-top: 100px;
  padding-bottom: 100px;
}

.ckt-item {
  background-color: white;
    position: relative; /* allows absolute positioning of pin */
    border: 2px solid black;
    border-radius: 20px;
    height: 60vh;
    padding: 50px 30px 30px; /* extra top padding so text doesn't clash with pin */
    display: flex;
    flex-direction: column; 
    width: calc(50% - 20px);
    gap: 30px;
    align-items: center;
    box-shadow: 10px 10px 0 black;
    min-width: 300px;
}

.ckt-item img:first-of-type {
    position: absolute;
    top: -40px;   /* half outside the box */
    left: -40px;   /* sticks to upper-left corner */
    width: 100px;  /* adjust size as needed */
    height: auto;
    pointer-events: none;
}

.ckt-item img:nth-of-type(2) {
    position: absolute;
    top: 15px;    /* fully inside */
    right: 15px;  /* upper-right corner */
    width: 100px;  /* adjust size */
    height: auto;
    pointer-events: none;
}

.ckt-item h3:first-of-type{
  display: flex;
  justify-content: center;
  padding: 10px;
}

.comp{
  background-color: white;
  top: 0;
  height: 90vh;
  padding: 15px;
  width: 70%;
  border: 2px solid black;
  display: flex;
  border-radius: 25px;
  justify-content: center; 
  align-items: center;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
  padding-top: 100px;
  padding-bottom: 100px;
  margin: 50px auto;
}

.dclg{
  background-color: white;
  top: 0;
  height: 100vh;
  padding: 15px;
  width: 70%;
  border: 2px solid black;
  display: flex;
  border-radius: 25px;
  justify-content: center; 
  align-items: center;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
  padding-top: 100px;
  padding-bottom: 100px;
  margin: 50px auto;
}

.ic{
  background-color: white;
  top: 0;
  height: 60vh;
  padding: 15px;
  width: 70%;
  border: 2px solid black;
  display: flex;
  border-radius: 25px;
  justify-content: center; 
  align-items: center;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
  padding-top: 100px;
  padding-bottom: 100px;
  margin: 50px auto;
}

.ic-container{
  background-color: white;
  top: 0;
  height: 10vh;
  padding: 15px;
  width: 70%;
  border: 2px solid black;
  display: flex;
  flex-direction: column;
  border-radius: 25px;
  justify-content: center;  
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: 10px 10px 0 black;
  padding-top: 100px;
  margin: 50px auto;
  padding-bottom: 100px;
}