* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    padding: 0px;
    margin: 0px;
    background-color: #f8f8f8;
    font-family: 'poppins', serif;

}

h1,
h2,
h3,
h4,
h6 {
    font-family: 'Montserrat', serif;
    margin: 5px;
}

a {
    text-decoration: none;
    color: inherit;
}

.clearfix::after {
    content: '';
    display: block;
    clear: both;
}

.btn {
    padding: .5rem 1rem;
    background: #0004ff;
    color: #f8f8f8;
    border: 1px solid transparent;
    border-radius: .25rem;
    font-size: 1.08em;
    font-family: 'poppins', serif;
  
}

.btn-big {
    padding: .7rem 1.3rem;
    line-height: 1.3rem;
    margin: 5px;
}

.btn:hover {
    color: #f8f8f8 !important;
    background: #e13700;
}

.text-input {
    padding: .7rem 1rem;
    display: block;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    color: #444;
    font-size: 1.2rem;
    line-height: 1.5 rem;
    font-family: 'poppins', serif;

}

.msg {
    width: 100%;
    margin: 5px auto;
    padding: 8px;
    border-radius: 10px;
    list-style: none;
}

.success {
    color: #3a6e3a;
    border: 1px solid #3a6e3a;
    background: #bcf5bc;
}

.error {
    color: red;
    border: 1px solid #884b4b;
    background: #e4b1b1;
}

.iamuser{
    margin-right: 5px;
}
.iamcalendar {
    margin-right: 5px; 
}

/*NAV BAR*/

header {
    background: #0004ff;
    height: 66px;
}

header * {
    color: #f8f8f8;

}

header .logo {
    float: left;
    height: inherit;
    margin-left: 2em;

}

header .logo-text {
    margin: 8px;
    font-family: 'Montserrat', serif;
}

header ul {
    float: right;
    margin: 0px;
    padding: 0px;
    list-style: none;

}

header ul li {
    float: left;
    position: relative;
}

header ul li ul {
    position: absolute;
    top: 66px;
    right: 0px;
    width: 180px;
    display: none;
    z-index: 88888;
}

header ul li:hover ul {
    display: block;
}

header ul li ul li {
    width: 100%;
}

header ul li ul li a {
    padding: 10px;
    background: #f8f8f8;
    color: #444
}

header ul li ul li a.logout {
    color: #e13700;
}

header ul li ul li a:hover {
    background: #d5d6d6;
}

header ul li a {
    display: block;
    padding: 21px;
    font-size: 1.1em;
    text-decoration: none;
}

header ul li a:hover {
    background-color: #0205b8;
    transition: 0.5s;
}

header .menu-toggle {
    display: none;
}

.page-wrapper {
    min-height: 100%;
}

.page-wrapper a:hover {
    color: #0004ff;
}

/*POST SLIDER*/
.post-slider {
    position: relative;

}

.post-slider .slider-title {
    text-align: center;
    margin: 30px auto;
}

.post-slider .next {
    position: absolute;
    top: 50%;
    right: 30px;
    font-size: 2em;
    color: #0004ff;
    cursor: pointer;
}

.post-slider .prev {
    position: absolute;
    top: 50%;
    left: 30px;
    font-size: 2em;
    color: #0004ff;
    cursor: pointer;
}

.post-slider .post-wrapper {
    width: 84%;
    height: 350px;
    margin: 0px auto;

    overflow: hidden;
}

.post-slider .post-wrapper .post {
    width: 300px;
    height: 330px;
    margin: 0px 10px;
    display: inline-block;
    padding: 10px 0px 10px 0px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 1em 1em 1em -1em #a0a0a033;
}

.post-slider .post-wrapper .post .slider-image {
    width: 100%;
    height: 200px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.post-slider .post-wrapper .post .post-info {
    height: 130px;
    padding: 0 10px;

}

/*CONTENT */
.content {
    width: 90%;
    margin: 30px auto 30px;

}

.content .main-content {
    width: 70%;
    float: left;
    /* border: 1px solid blue;*/

}

.content .main-content.single {
    background: white;
    padding: 20px 50px;
    font-size: 1.1em;
    border-radius: 10px;
}

.content .main-content.single .post-title {
    text-align: center;
    margin-bottom: 40px;
}
.content .main-content.single .single-post-image {
    text-align: center; /* Centers the image */
    margin-bottom: 20px; /* Adds spacing below the image */
}

.content .main-content.single .single-post-image .post-image {
    width: 100%; /* Ensures the image scales properly */
    max-width: 800px; /* Limits the maximum width */
    height: auto; /* Maintains aspect ratio */
    border-radius: 10px; /* Adds rounded corners */
    display: block; /* Removes extra space below inline images */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
}

.content .main-content .post {
    width: 95%;
    height: 270px;
    margin: 20px auto;
    border-radius: 10px;
    background: white;
    position: relative;
    
}

.content .popular .post {
    border: 1px solid #e0e0e0;
    margin-top: 10px;
    padding-top: 10px;

}

.content .popular .post img {
    height: 100%;
    width: 75px;
    float: left;
    padding: 5px;
    margin-right: 10px;
}

.content .main-content .post .read-more {
    position: absolute;
    bottom: 10px;
    right: 10px;
    border: 1px solid #0004ff;
    background: transparent;
    border-radius: 0px;
    color: #0004ff !important;


}

.content .main-content .post .read-more:hover {
    background: #0004ff;
    color: #f8f8f8 !important;
    transition: .25s;
}

.content .main-content .post .post-image {
    width: 40%;
    height: 100%;
    float: left;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  
}

.content .main-content .post .post-preview {
    width: 60%;
    float: right;
    padding: 10px;
  
}

.content .main-content .recent-post-title {
    margin: 20px;
}

.content .sidebar {
    width: 30%;
    float: left;



}

.content .sidebar.single {
    padding: 0px 10px;

}

.content .sidebar .section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.content .sidebar .section .section-title {
    margin: 10px 0px 10px 0px;
}

.content .sidebar .section.search {
    margin-top: 80px;

}

.content .sidebar .section.topics ul {
    margin: 0px;
    padding: 0px;
   
    list-style: none;
    border-top: 1px solid #0e0e0e;
    transition: all 0.3s;
}

.content .sidebar .section.topics ul li a {
    display: block;
    padding: 15px 0px 15px 0px;
    border-bottom: 1px solid #0e0e0e;
}

.content .sidebar .section.topics ul li a:hover {
    padding-left: 10px;
    transition: all 0.3sec;
}

/* AUTH PAGES*/
.auth-content {
    width: 30%;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10 px;
}

.auth-content .form-title {
    text-align: center;
}

.auth-content form div {
    margin-bottom: 10px;
}

.auth-content form div p {
    text-align: center;

}

.auth-content form div a {
    text-decoration: underline;
}

/* FOOTER */
.footer {
    background: #0004ff;
    color: #f8f8f8;
    height: 400px;
    position: relative;

}

.footer .footer-content {

    height: 350px;
    display: flex;

}

.footer .footer-content .footer-section {
    flex: 1;

    padding: 20px;

}

.footer .footer-content h1,
.footer .footer-content h1 {
    color: white;
}

.footer .footer-content .about .contact span {
    display: block;
    font-size: 1.1em;
    margin-bottom: 8px;

}

.footer .footer-content .about .socials a {
    border: 1px solid #f8f8f8;
    width: 45px;
    height: 41px;
    padding-top: 5px;
    margin-right: 5px;
    text-align: center;
    display: inline-block;
    font-size: 1.3em;
    border-radius: 10px;
    transition: all .3s;
}

.footer .footer-content .about .socials a:hover {
    border: 1px solid #e13700;
    color: #f8f8f8;
    transition: all .3s;
}

.footer .footer-content .links ul a {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2em;
    transition: all .3s;
}

.footer .footer-content .links ul a:hover {
    color: #e13700;
    margin-left: 15px;
    transition: all .3s;
}

.footer .footer-content .contact-form .contact-input {
    background: #272727;
    color: #bebdbd;
    margin-bottom: 10px;
    line-height: 1.5rem;
    padding: .9rem 1.2rem;
    border: none;

}

.footer .footer-content .contact-form .contact-input:focus {
    color: #f8f8f8;
}

.footer .footer-content .contact-form .contact-btn {
    float: right;
    background: #e13700;
    font-size: 1.1em;
    font-family: 'poppins', serif;
}


.footer .footer-bottom {
    background: #e13700;
    color: #f8f8f8;
    height: 30px;
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 0px;
    left: 0px;
    padding-top: 20px;
}


/* Media Queries */

@media only screen and (max-width: 934px) {
    .content {
        width: 100%;


    }
    .auth-content {
        width: 40%;
 
    }
    

    .content .main-content .post {
        width: 100%;
    }

    .content .main-content {
        width: 100%;
        padding: 10px;
    }

    .content .sidebar {
        width: 100%;
        padding: 10px;

    }

    .content .sidebar .section.search {
        margin-top: 30px;

    }

    .footer {


        height: auto;

    }

    .footer .footer-content {

        height: auto;
        flex-direction: column;
    }

    .footer .footer-content .contact-form {
        padding-bottom: 90px;
    }

    .footer .footer-content .contact-form .contact-btn {
        width: 100%;
    }


}

@media only screen and (max-width: 802px) {
    header {
        position: relative;
    }
    .auth-content {
        width: 60%;
 
    }
    

    .main-content-wrapper{
        padding: 10px;
    }
     

    header ul {
        width: 100%;
        background: #0205b8;
        max-height: 0px;
        overflow: hidden;
    }

    .showing {
        max-height: 100em;
    }

    header ul li {
        width: 100%;
    }

    header ul li ul {
        position: static;
        display: block;
        width: 100%;
        background: inherit;
    }

    header ul li ul li a {
        padding: 10px;
        background: #0205b8;
        color: #f8f8f8;
        padding-left: 50px
    }

    header ul li ul li a.logout {
        color: #e13700;
    }

    header .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        font-size: 1.9em;
    }

    header .logo {
        margin-top: 5px;
        margin-left: .5em;

    }

}

@media only screen and (max-width: 700px) {
    .content .main-content .post {
        height: auto;
    }
    .auth-content {
        width: 90%;
 
    }
    

    .content .main-content.single {
        padding: 10px 20px;
    }
    .content .main-content .post .post-image  {
        width: 100%;

    }

    .content .main-content .post .post-preview  {
        width: 100%;
        
    }
    .content .main-content .post .read-more{
        position: static;
        display: block;
        width: 100%;
        text-align: center;
        
    }
    .post-slider .next {
       
        right: 10px;
      
    }
    .post-slider .prev {
       
        left: 10px;
    }   
      
     
}
