@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anek+Kannada&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Montserrat', sans-serif;
}

header {
	background:#27363f;
	width:100%;
	padding:40px 0;
	color:white;
	text-align:center;
}

a {
	text-decoration:none;
	color:inherit;
}

nav ul {
	background-color:#446274;
	overflow:hidden;
	color:white;
	padding:0;
	margin:0;
	text-align:center;
	-webkit-transition:max-height 0.4s;
	-ms-transition:max-height 0.4s;
	-moz-transition:max-height 0.4s;
	-o-transition:max-height 0.4s;
	transition:max-height 0.4s;
}

nav ul li {
	display:inline-block;
	padding:20px;
}

nav ul li:hover {
	background-color:#718e9e;
}

.handle {
	width:100%;
	background: #446274;
	text-align:left;
	box-sizing:border-box;
	padding:15px 10px;
	cursor:pointer;
	color:white;
	display:none;
}

@media screen and (max-width:580px){
	nav ul {
		max-height: 0;
	}

	.showing {
		max-height: 20em;
	}

	nav ul li {
		width: 100%;
		box-sizing: border-box;
		padding: 15px;
		text-align: left;
	}

	.handle {
		display: block;
	}
}

.container {
	display: flex;
	justify-content: space-between;
	margin: 20px 15%;
}

@media only screen and (max-width: 600px) {
	.container {
		flex-direction: column;
	}
}
.subscription-details {
	flex: 1;
	padding-right: 20px;
}

.subscription-details h2 {
	margin-bottom: 10px;
	font-family: 'Anek Kannada', sans-serif;
}

.subscription-details p {
	margin-bottom: 25px;
	font-family: 'Anek Kannada', sans-serif;
}

.subscription-details li {
	font-family: 'Anek Kannada', sans-serif;
}

.subscription-details span {
	font-family: 'Anek Kannada', sans-serif;
	font-weight: 800;
}

.subscription-form {
	flex: 1;
}
.subscription-form h2 {
	margin-bottom: 20px;
}

.subscribe-form form {
	width: 100%;
}

.subscribe-form input, select, button {
	width: 100%;
	padding: 8px;
	outline: none;
	margin-bottom: 10px;
}

.subscribe-form button {
	background-color: #446274;
	color: white;
	border: none;
	cursor: pointer;
}

/*---- Submit Section | submit.php ----*/

.form-container {
	margin: 50px 20%;
}

.form-container span {
	color: red;
}

.submit-form label {
	font-family: 'Anek Kannada', sans-serif;
}

.submit-form input[type=text] {
	width: 100%;
	padding: 10px 10px;
	outline: none;
	border-radius: 5px;
	border: 1px solid gray;
	margin-bottom: 20px;
	margin-top: 5px;
}

.submit-form input[type=file] {
	border: 1px solid gray;
	padding: 10px;
	max-width: 100%;
	border-radius: 5px;
	margin-top: 5px;
}

.submit-form textarea {
	width: 100%;
	min-height: 70px;
	margin-top: 5px;
	padding: 10px;
	border-radius: 5px;
	outline: none;
}

.submit-form input[type=submit] {
	background-color: #446274;
	color: white;
	padding: 10px 20px;
	border-radius: 30px;
	border: none;
	cursor: pointer;
	margin-top: 10px;
}

.submit-form input[type=submit]:hover {
	opacity: 0.9;
	transition: 0.2 ease;
}

.req-info {
	float: right;
}

.login-container {
	margin: 20px 30%;
	min-height: 60vh;
}

.login-container h2 {
	text-align: center;
}

.login-form input {
	width: 100%;
	border: 1px solid gray;
	padding: 10px;
	max-width: 100%;
	margin-bottom: 10px;
}

.error {
	color: red;
}

.login-form button {
	background-color: #446274;
	color: white;
	padding: 10px 20px;
	border: none;
	cursor: pointer;
	margin-top: 10px;
}

.login-form p {
	text-align: center;
}

.login-form a {
	color: #2f8ffd;
	text-decoration: underline;
}

.login-form a:hover {
	text-decoration: none;
}

.year-container {
	margin: 0 20%;
}

.year-container h2 {
	margin: 20px 0px;
}

.button-color-full {
	background-color: #446274;
	color: white;
	padding: 10px 20px;
	border: none;
	cursor: pointer;
	margin-top: 10px;
}

.journal-container {
	margin: 20px 20%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	padding: 10px;
}

.journal-by-year-title {
	text-decoration: underline;
	margin-bottom: 20px;
	font-size: 30px;
	text-align: center;
	margin-top: 30px;
}

.journal-container span {
	color: blue;
	text-decoration: underline;
}

.journal-container span:hover {
	text-decoration: none;
}

/* Style for each journal entry */
.journal-entry {
    width: calc(33.33% - 20px); /* Adjust the width as needed */
    margin-bottom: 20px; /* Add margin between entries */
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}
.journal-entry img {
    max-width: 100%;
    height: auto;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .journal-entry {
        width: calc(50% - 20px); /* Adjust the width for smaller screens */
    }
}

/* Media query for even smaller screens */
@media (max-width: 480px) {
    .journal-entry {
        width: calc(100% - 20px); /* Adjust the width for even smaller screens */
    }
}

.article-main-container {
    margin: 10px 20%;
    min-height: 45vh;
}

.article-main-container h2, .article-main-container h3, .article-main-container a,  .article-main-container li {
    font-family: 'Anek Kannada';
}

.article-main-container h2 {
    margin-top: 30px;
}

.article-container li a {
    color: #27363f;
}

.article-container li a:hover {
    text-decoration: underline;
}

.link-type {
    color: blue !important;
    text-decoration: underline;
}

/*---- Footer Section ----*/
.footer-container {
    max-width: 1170px;
    background-color:#446274 ;
    margin: auto;
}
.row {
    display:flex;
    flex-wrap: wrap;
}

.footer {
    background-color: #446274;
    color: white;
    padding: 70px 0;
}
.footer-col {
    width:25%;
    padding: 0 15px;
}
.footer-col h4 {
    font-size:18px ;
    color: white;
    margin-bottom: 32px;
    font-weight: 800;
    position: relative;
}
.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom:-10px ;
    background-color: #ffffff;
    height: 2px;
    box-sizing: border-box;
    width: 50px;
}

.footer-col ul li:not(:last-child) {
    margin-bottom: 10px;
}

.footer-col ul li a{
    font-size: 16px;
    color: white;
    text-decoration: none;
    font-weight: 300;
    display: block;
    transition: all 0.3s ease;
}

.footer-col ul li {
    list-style: none !important;
}

.footer-col ul li a:hover{
    color: white;
    padding-left: 5px;
}

.footer-col .social-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    background-color: #535395;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 50%;
    color: #DADBFF;
    transition: all 0.5s ease;
    text-decoration: none; /* Added for consistency */
}

.footer-col .social-link a:hover {
    color:#24262b ;
    background-color: #ffffff;
}
.copyrightText {
    background-color: #27363f;
    text-align: center;
    padding: 20px;
    position: relative;
    margin-bottom: -100px;
    margin-top: 20px;
    left: 0;
    width: 100%;
    color: #ffffff;
}

.dev {
    color: blue;
    font-weight: 500;
}

@media (max-width: 767px){
    .footer-col{
        width: 50%;
        margin-bottom: 30px;
    }
    .copyrightText {
        font-size: 14px;
        }
    }

@media (max-width: 574px){
    .footer-col{
        width: 100%;
       
    }

    .copyrightText {
        font-size: 12px;
    }
}