
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #dfdfdf;
    color: #333;
    height: 100vh;
    text-align: center;
}
small{
    width: 100%;
    word-wrap: break-word;
}
footer{
    background: #eee;
    text-align: center;
    color: #999;
    font-size: 0.9em;
    padding: 10px;
    margin-top:50px ;
}
.span-text{
    padding-top: 20px;
    padding-bottom: 20px;
}
.log-reg{
    padding: 10px;
}

h1, h2 {
    color: #222;
    font-size: 2.5em;
    margin-top: 40px;
}
.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 15px auto;
    max-width: 600px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
p{
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}
a.button-link{
    display: inline;
    margin: 10px;
    padding: 10px 20px;
    background-color: #00aaff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}
a.button-link:hover{
    background-color: #007acc;
}

nav {
    background-color: #00aaff;
    padding: 15px 0;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block;

}
nav span{
    color: white;
}

nav a {
    color: #555;
    text-decoration: none;
    margin:0 15px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

form input[type="text"],    
form input[type="email"],
form input[type="password"],
form textarea,
form input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}
input:focus{
    border-color: #4a6bff;
    outline: none;
    box-shadow: 0 0 0 3px rgb(74 , 107, 255, 0.2);
}

button {
    background-color: #4a6bff;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3a5bef
}

ul {
    list-style-type: none;
    padding-left: 0;
}
.total{
    color: bl;
}

li {
    background:none;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;

    width: 150px;
    margin: 5px auto
    background-color: blur;
    border-radius: 10px;
    color: #1d1e1f;
    text-align: left;
    box-shadow: 0 5px 25px rgb(0,0,0,0.2);
    animation:  fadeln 0.5s ease-in-out;
    
}
.container{
    width: 300px;
    margin: 60px auto;
    padding: 40px;
    background-color: rgb(255, 255, 255, 0.95);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 25px rgb(0,0,0,0.2);
    animation:  fadeln 0.5s ease-in-out;
}
.container h2{
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}
label{
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.note-card{
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
.highlighted{
    background-color: #f8f9fa;
    border-left: 4px solid #4285f4;
}

.category{
    background: #e8f0fe;
    color: #1967d2;
    padding: 3px 8px;
    border-radius: 4px;
}
.download-btn{
    background:#4285f4 ;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}
.search-container{
    display: flex;
    gap: 10px;
    margin: 20px 0;
}
.search-bar{
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.comment-box {
    margin: 10px 0;
    padding: 10px;
    border-left: 3px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 5px;
}.comment-box strong {
color: #333;
}

.comment-box small {
font-size: 0.8em;
color: #777;
}

.comment-form, .reply-form {
margin-top: 10px;
}

.comment-form textarea,
.reply-form textarea {
width: 50%;
min-height: 60px;
padding: 8px;
border-radius: 5px;
border: 1px solid #ccc;
resize: vertical;
}

.comment-form button,
.reply-form button {
margin-top: 5px;
padding: 2px 10px;
background-color: #1c87c9;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
}
.reply-form button{
    padding: 2px;
}

.comment-form button:hover,
.reply-form button:hover {
background-color: #155d8b;
}

.reply-link {
color: #1c87c9;
cursor: pointer;
font-size: 0.9em;
}

.nested-reply {
margin-left: 20px;
}
.notes-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px, 1fr));
    gap: 15px;
}
.index-container{
    max-width: 900px;
    margin: 40px auto;
    padding: 00px;
    text-align: center;
}
.section{
    margin: 60px 0;
}
@media screen and (max-width:600px){
    nav a{
        display: block;
        margin: 10px 0;
    }
    h1{
        font-size: 1.8em;

    }
    .index-container{
        padding: 10px;
    }
    a.button-link{
        width: 80%;
        font-size: 1em;
    }
}
@keyframes fadeln{
    from{opacity: 0; transform: translate(20px);}
    to{opacity: 1; transform: translate(0);}
}
@keyframes slideBackground{
    0%, 20%{
        background-image: url('images/girls-image.jpg');
    }
    25%, 75%{
        background-image: url('images/boys-image.jpg');
    }
    80%, 100%{
        background-image: url('images/boy-image.jpg');
    }

}
.section h2{
    color: whitesmoke;
}
.section p{
    color: whitesmoke;
}
.about-us{
    color: white;
    background-color: #29292a;
    padding-top: 20px;
}
.head-content h1{
    color: #efe1e1;
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
}
.head-content p{
    color: whitesmoke;
    padding-top: 20px;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 0;
}
span{
    color: #0066cc ;
    text-decoration: underline;
    padding: 20px;
    font-size: 1rem;
    font-weight: bold;
}
.bottom-box{
    position: fixed;
    bottom: 0;
    width: 40%;
    background-color: rgb(255, 255, 255, 0.7);
    border-top:2px solid #ccc;
    text-align: center;
    padding: 15px 10px;
    font-size: 1rem;
    box-shadow: 0 -2px 5px rgb(0, 0, 0,0.1);
    backdrop-filter: blur(5px);
}
.head-content{
    background-size: cover;
    height: 400px;
    background-position: center;
    backdrop-filter: blur(45px);
    background-repeat: no-repeat;
    animation: slideBackground 15s infinite;
    text-shadow: 1px 1px 3px rgb(0, 0, 0, 0.7);
}
.profile-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}
.profile-card{
    background-color: rgb(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgb(0, 0, 0,0.2);
    width: 100%;
    max-width: 500px;
    animation: fadeln 0.5s ease-in-out;
}
.profile-card h2{
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}
.profile-info{
    margin-bottom: 30px;
}
.info-group{
    margin-bottom: 20px;
}
.info-value{
    display: block;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
}
.button-group{
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
.btn{
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    flex: 1;
}
.btn-primary{
    background-color: #4a6bff;
    color: white;
    border: none;
}
.btn-primary:hover{
    background-color: #3a5bef;
}
.btn-secondary{
    background-color: transparent;
    color: #4a6bff;
    border: 1px solid #4a6bff;
}
.btn-secondary:hover{
    background-color: rgb(74, 107, 255,0.1);
}
.social-icon{
    width: 35px;
    height: 35px;
}
.reply-btn{
    padding: 5px;
    font-size: small;
    background-color: green;
}
.post-btn{
    padding: 10px 25px;
}
.total{
    color: black;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    
    width: 90%;
}
.total li{
    width: 50%;
    background-color: blur;
}
/* Hamburger Icon */
.hamburger {
    font-size: 28px;
    cursor: pointer;
    padding: 15px;
    color: #333;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
  }
  
  /* Side Menu */
  .side-menu {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #222;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
    z-index: 1002;
  }
  
  .side-menu a {
    padding: 12px 30px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
  }
  
  .side-menu a:hover {
    background-color: #444;
  }
  
  .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
  
  /* Overlay with blur */
  .menu-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
  }
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  .donate-btn {
    background: #281305;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
  }
  .donate-btn:hover {
    background: #e65c00;
  }
  .new-badge {
    display: inline-block;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
  }
.most-downloaded{
    grid-template-columns: repeat(auto-fill,minmax(300px, 1fr));
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    border-left: 4px solid #4285f4;
    padding: 15px;
    margin-bottom: 15px;
}
/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f7fa;
    margin: 0;
    padding: 0;
    color: #333;
}

a {
    color: #337ab7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: #222;
}

/* Container */
.container, .index-container, .article-container, .profile-container {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Header & Navigation */
nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 20px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li {
    display: inline;
}

nav ul li a {
    padding: 10px 15px;
    background-color: #337ab7;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
}

nav ul li a:hover {
    background-color: #286090;
}

/* Buttons */
button, .btn, .button-link, .donate-btn {
    background-color: #e65c00;
    border: none;
    padding: 10px 20px;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease;
    text-decoration: none;
}
.search-btn{
    background-color: #4a6bff ;
}

button:hover, .btn:hover, .button-link:hover, .donate-btn:hover {
    background-color: #1a2835;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

table th {
    background-color: #337ab7;
    color: white;
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 8px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #337ab7;
    text-decoration: none;
    font-weight: 600;
}

.pagination a:hover {
    background-color: #337ab7;
    color: white;
    border-color: #337ab7;
}

.pagination .current-page {
    background-color: #337ab7;
    color: white;
    border-color: #337ab7;
}

/* Forms */
form {
    margin: 15px 0 30px 0;
}

.question-upload{
    max-width: 80px;

}
input[type="text"], input[type="email"], input[type="password"], select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus {
    outline: none;
    border-color: #337ab7;
    box-shadow: 0 0 5px rgba(51,122,183,0.5);
}

/* Search Bar */
.search-form {
    margin-bottom: 25px;
    max-width: 400px;
}

.search-form input[type="text"] {
    width: calc(100% - 90px);
    display: inline-block;
    margin-right: 10px;
}

.search-form button {
    width: 70px;
    display: inline-block;
}

/* Filter dropdowns (class/category) */
.filter-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group select {
    width: 150px;
}

/* Notes cards */
.notes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.note-list{
    display: table;
    gap: 20px;
}

.question-card{
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
   display: flex;
    justify-content: space-between;
    max-width: 300px;
}
.input-container{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px;
    justify-content: center;
    align-items: center;
}
.input-container select{
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    width: 150px;
    background-color: #fff;
}
.input-container button:hover{
    opacity: 0.8;
}
.meta{
    color: #666;
    font-size: 0.9em;
    margin: 10px 0;
    flex-grow: 1;
    margin-bottom: 10px;
    color: #555;
}
.note-card {
  background: #fff;               /* White background for box */
  border: 1px solid #ddd;         /* Light border */
  border-radius: 12px;            /* Rounded corners */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Soft shadow */
  padding: 16px;                  /* Space inside */
  margin: 12px auto;              /* Space between boxes */
  max-width: 90%;                 /* Fit within page */
  display: flex;
  flex-direction: column;         /* Arrange text downward */
  gap: 8px;                       /* Space between elements */
}

.note-card h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}

.note-card p {
  font-size: 14px;
  margin: 0;
}

.note-card .meta {
  font-size: 12px;
  color: #666;
}

.note-card .download-btn {
  margin-top: 10px;
  align-self: flex-start;
  background: #007bff;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease-in-out;
}

.note-card .download-btn:hover {
  background: #0056b3;
}

.note-card p {
    flex-grow: 1;
    margin-bottom: 10px;
    color: #555;
}

.note-card .note-meta {
    font-size: 0.85em;
    color: #999;
}

.note-card a.btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Comments in Admin */
.admin-comments-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.admin-comments-table th, .admin-comments-table td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.admin-comments-table th {
    background-color: #337ab7;
    color: #fff;
}

/* Article previews */
.articles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.article-preview {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    width: calc(50% - 10px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-preview h3 {
    margin-top: 0;
}

.article-preview p {
    flex-grow: 1;
    color: #444;
}

.article-preview a.btn {
    margin-top: 10px;
    align-self: flex-start;
}

/* Article full page */
.article-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.article-title {
    font-size: 2em;
    margin-bottom: 10px;
}

.article-date {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.article-content {
    font-size: 1.1em;
    line-height: 1.6em;
}

/* Profile page */
.profile-container {
    max-width: 450px;
    margin: 40px auto;
    background: #fff;
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-card h2 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #222;
}

.info-group {
    margin-bottom: 20px;
}

.info-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.info-value {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #eee;
    color: #555;
}

.password-section input {
    width: 100%;
}

.button-group {
    text-align: center;
}

.button-group .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 1em;
}

/* Index page enhancements */
.index-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px 40px 15px;
}

.head-content h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    text-align: center;
}

.head-content p {
    font-size: 1.2em;
    text-align: center;
    
    margin-bottom: 40px;
}

.bottom-box {
    position: fixed;
    bottom: 10px;
    width: 100%;
    background: #337ab7;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-weight: 600;
    font-size: 1em;
}

.log-reg {
    text-align: center;
    margin: 30px 0;
}

.log-reg .button-link {
    margin: 10px 5px;
    padding: 12px 22px;
    font-size: 1.1em;
    border-radius: 6px;
}

.about-us {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.about-us .section {
    margin-bottom: 30px;
}

.about-us h2 {
    margin-bottom: 15px;
}

.social-icon {
    width: 30px;
    height: 30px;
    margin-right: 12px;
    vertical-align: middle;
    border-radius: 4px;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #888;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 600px) {
    .articles-list {
        flex-direction: column;
        width: 100%;
    }
    .article-preview {
        width: 100%;
    }
    nav ul {
        flex-direction: column;
    }
    .filter-group {
        flex-direction: column;
    }
}


.comment-box {
    margin-top: 30px;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

.comment-box textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
}

.comment-box button {
    padding: 10px 20px;
    background-color: #4285f4;
    color: #fff;
    border: none;
    cursor: pointer;
}

.comment-box button:hover {
    background-color: #3367d6;
}
.comment-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.comment-section textarea {
    width: 100%;
    padding: 10px;
    height: 100px;
    border-radius: 5px;
    resize: vertical;
}

.comment-section button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.comment-section button:hover {
    background-color: #0056b3;
}

.success {
    color: green;
}

.error {
    color: red;
}
