/* Custom Styles for Vidhai E-Journal */

:root {
    --primary-color: #0056b3;
    /* A professional blue, common in academic/journal themes */
    --secondary-color: #343a40;
    /* Dark grey for strong contrast */
    --light-background: #f8f9fa;
    /* Light background for content */
    --medium-grey: #6c757d;
    /* Muted text for secondary info */
    --white: #FFFFFF;
    --dark-font: #212529;
    /* Dark font for main text */
}

body {
    font-family: 'Noto Sans Tamil', 'Georgia', serif;
    /* Classic serif for readability */
    background-color: var(--light-background);
    color: var(--dark-font);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Sans Tamil', 'Helvetica Neue', sans-serif;
    /* Sans-serif for headings */
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Navbar Customization */
.navbar {
    background-color: var(--white) !important;
    padding: 0.8rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    /* Bolder for prominence */
    font-size: 1.8rem;
    color: var(--secondary-color) !important;
    padding-right: 1rem;
    /* Space from toggler/nav items */
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-height: 75px;
    width: auto;
    margin-right: 10px;
}

.site-header-banner {
    background-color: var(--white);
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

.site-header-banner img {
    width: 100%;
    height: auto;
    max-height: 250px;
    /* Slight increase for better visibility */
    object-fit: cover;
    display: block;
}

.nav-link {
    color: var(--secondary-color) !important;
    /* Dark text on white bg */
    font-weight: 600;
    /* Slightly bolder for readability on white */
    margin-right: 0.8rem;
    /* Spacing between nav items */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(0, 86, 179, 0.1);
    /* Subtle blue hover background */
    border-radius: 5px;
}

.btn-cta {
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 5px;
    /* More standard button look */
    padding: 0.4rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.btn-cta:hover {
    background-color: darken(var(--primary-color), 10%);
    /* Darken on hover */
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
}

/* Hero Slider */
#main-slider {
    margin-bottom: 2rem;
}

#main-slider .carousel-item {
    max-height: 450px;
    /* Consistent height for slider */
    overflow: hidden;
    position: relative;
}

#main-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    /* More pronounced darkening for text contrast */
}

#main-slider .carousel-caption {
    top: 50%;
    /* Center vertically */
    transform: translateY(-50%);
    bottom: auto;
    /* Override default bottom alignment */
    padding: 1.5rem 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    /* Darker, more solid background */
    border-radius: 8px;
    max-width: 70%;
    /* Constrain width */
    left: 15%;
    /* Align left */
    right: auto;
    text-align: left;
}

#main-slider .carousel-caption h5 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

#main-slider .carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* General Layout */
main.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Card Styles for Articles, Authors, etc. */
.card {
    border: 1px solid #e9ecef;
    /* Subtle border */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    background-color: var(--white);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card-img-top {
    height: 200px;
    /* Uniform height for images */
    object-fit: cover;
}

.card-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.card-title a {
    color: var(--secondary-color);
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-text {
    color: var(--dark-font);
}

.text-muted {
    color: var(--medium-grey) !important;
    font-size: 0.875rem;
}

/* Article Page Specifics */
.article-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.article-meta {
    font-size: 0.9rem;
    color: var(--medium-grey);
    margin-bottom: 1.5rem;
}

.article-content {
    font-family: 'Noto Sans Tamil', 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-font);
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
}

/* Sidebar Sections (Categories, Archives, Search) */
aside h4 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    /* Underline effect */
    padding-bottom: 0.5rem;
}

.list-group-item {
    border: none;
    background-color: transparent;
    padding: 0.5rem 0;
}

.list-group-item a {
    color: var(--dark-font);
    font-weight: 400;
    transition: all 0.2s ease;
}

.list-group-item a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Search Form */
.search-form .form-control {
    border-radius: 5px;
    border-color: #ced4da;
}

.search-form .btn {
    border-radius: 5px;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
    margin-top: 4rem;
    font-size: 0.9rem;
}

footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    display: block;
    /* Each link on new line */
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: var(--white);
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-icons a:hover {
    color: var(--white);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    #main-slider .carousel-caption {
        max-width: 90%;
        left: 5%;
        padding: 1rem;
    }

    #main-slider .carousel-caption h5 {
        font-size: 1.5rem;
    }

    #main-slider .carousel-caption p {
        font-size: 0.9rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }
}