/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: #333;
}

/* Layout */
.container {
    display: flex;
    flex-wrap: nowrap;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background-color: #2c3e50;
    color: white;
    padding: 14px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

.sidebar h2 {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 5px;
    transition: background 0.2s, border-left 0.2s;
}

/* Hover Effect */
.sidebar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Active Link Styling */
.sidebar a.active {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: bold;
    color: #fff;
    border-left: 4px solid yellow;
}

/* Nested List (Submenu) */
.sidebar ul ul {
    padding-left: 15px;
    font-size: 14px;
    color: #bdc3c7;
}

/* Content Area */
.content {
    margin-left: 260px;  /* Left side thoda zyada */
    margin-right: 25px;  /* Right side thoda kam */
    padding: 40px 20px;
    flex: 1;
    background: white;
    min-height: 100vh;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

/* Updated Header Styling */
header {
    background: linear-gradient(90deg, #1c3f72, #2a5dab, #3b73d1);
    color: #e0e7ff;
    padding: 30px 25px 20px;
    border-radius: 20px;
    margin-bottom: 35px;
    box-shadow: 0 6px 20px rgba(28, 63, 114, 0.6);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header h1 {
    margin: 0 0 18px 0;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.35);
}

/* Section Styling */
section {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #3498db;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: all 0.3s;
}

section:nth-of-type(2) {
    background-color: #eef6ff;
    border-left-color: #007bff;
}

section:nth-of-type(3) {
    background-color: #f5fff4;
    border-left-color: #28a745;
}

section:nth-of-type(4) {
    background-color: #ecf0f1;
    border-left-color: #65bdd3;
}

section:nth-of-type(5) {
    background-color: #7c2e48;
    border-left-color: #9cc0e9;
}

section h2 {
    color: #2c3e50;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 20px;
    color: #888;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #eee;
}

/* Link Styling */
a {
    color: blue;
    text-decoration: underline;
}

/* Responsive Sidebar */
@media screen and (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        box-shadow: none;
        overflow-y: auto;
        max-height: 100vh;
    }
    .content {
        margin-left: 0;
        margin-right: 0;
        padding: 20px;
    }
}

/* Scrolling Text Styling */
.scrolling-text-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 25px auto;
    overflow: hidden;
    background-color: #3498db;
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll-left 20s linear infinite;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
