* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #f2f2f2, #e8f0ff);
    color: #333;
    line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

header {
    background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

header.scrolled {
    padding: 15px 0;
    background: #0f2027;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 3rem;
    letter-spacing: 1px;
    transition: font-size 0.3s ease-in-out;
}

header.scrolled h1 {
    font-size: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
    flex-wrap: wrap;
    margin-left: 0;
}

header.scrolled nav ul {
    margin-top: 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

nav ul li a:hover {
    background-color: #ffffff22;
}

nav ul li a.active {
  background-color: #2d6799;
  color: #ffffff !important;
  border-radius: 5px;
  font-weight: 700;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

.page-content{
    padding-top: 220px;
}

main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

section {
    background: white;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #0f4c75;
    margin-bottom: 15px;
    border-left: 5px solid #0f4c75;
    padding-left: 10px;
    font-size: 1.5rem;
    line-height: 30px;
}

p {
    font-size: 1rem;
    margin-bottom: 15px;
}

ul, ol {
    margin-left: 25px;
    padding-left: 10px;
}

ul li, ol li {
    margin-bottom: 8px;
}

video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 15px;
}

a {
    color: #0077cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    background: #0f2027;
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

footer a {
    color: #ffd369;
    font-weight: 600;
}

.indent {
    text-indent: 40px;
}

.bordered-img {
    border: 3px solid #ccc;
}

.thumbnail {
    max-width: 400px;
    height: auto;
    border: 3px solid #ccc;
    opacity: 0.95;
}

.thumbnail:hover {
    opacity: 0.7;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 1rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

table caption {
  caption-side: top;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #0f4c75;
}

table thead {
  background-color: #0f4c75;
  color: white;
}

table th,
table td {
  padding: 15px;
  border: 1px solid #ddd;
  text-align: left;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

table tbody tr:hover {
  background-color: #f1faff;
}

.text-w-img{
    display: flex;
    gap: 20px;
}

.text-w-img img{
    max-width: 400px;
    height: fit-content;
    border-radius: 10px;
    object-fit: cover;
}

.sub-ul{
    margin-top: 8px;
    margin-bottom: 10px;
}

.ref-page .sub-ul li{
    margin-bottom: 15px;
}


/* Media Quries Start */

@media only screen and (max-width:992px){
    header h1 {
        font-size: 2rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    header{
        padding: 15px 0;
    }

    nav ul {
        margin-top: 15px;
        gap: 14px;
    }

    .page-content {
        padding-top: 170px;
    }

    h2 {
        margin-bottom: 14px;
        border-left: 4px solid #0f4c75;
        padding-left: 9px;
        font-size: 1.3rem;
        line-height: 24px;
    }

    p {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .text-w-img {
        flex-direction: column;
    }

    .text-w-img .text{
        order: 2;
    }

    .text-w-img img{
        margin: 0 auto;
    }

    ul li,ol li, ul li a{
        font-size: 15px;
    }

    table th, table td {
        padding: 11px 15px;
        font-size: 15px;
    }

    section:last-child{
        margin-bottom: 20px;
    }
}

@media only screen and (max-width:768px){
    nav ul {
        gap: 2px;
    }

    nav ul li a {
        font-size: 0.8rem;
    }

    header {
        padding-top: 10px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    h2 {
        margin-bottom: 12px;
        font-size: 1.1rem;
        line-height: 22px;
    }

    ul li, ol li, ul li a, p, table th, table td {
        font-size: 14px;
    }

    .page-content {
        padding-top: 150px;
    }

    header.scrolled h1 {
        font-size: 1.8rem;
    }
}
