/* =========================================================
   1. MULTILINGUAL FONT & BASE FIXES
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700&family=Noto+Sans+Kannada:wght@400;600;700&family=Noto+Sans+Malayalam:wght@400;600;700&family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');

body, h1, h2, h3, h4, h5, h6, p, a, div, span, li, td, th, 
.navbar, .header_view, .jumbotron h1, .jumbotron h2, .navbar-brand {
    font-family: 'Noto Sans', 'Noto Sans Kannada', 'Noto Sans Devanagari', 'Noto Sans Malayalam', sans-serif !important;
}

body {
    background-color: #f4f6f9 !important; 
    color: #333333 !important;
}

/* =========================================================
   2. WIDER BODY LAYOUT (Reduces Left/Right Empty Space)
   ========================================================= */
/* Expand the main container holding the website content */
.container {
    width: 96% !important;
    max-width: 1300px !important; 
}

.pkp_structure_main {
    max-width: 100% !important; 
    margin: 40px auto !important; 
    float: none !important;
}

.pkp_structure_main p, .pkp_structure_main ul li {
    font-size: 16px;
    line-height: 1.8; 
    color: #444444;
    text-align: justify; 
}

/* =========================================================
   3. STRICT 3-COLUMN GRID (Current Issue & Archives)
   ========================================================= */
/* Force 3 items per row on desktop */
.cmp_article_list, 
.media-list, 
.sections .media-list,
.issues_archive .media-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    margin-top: 25px;
    padding: 0;
}

/* Make it drop to 1 column on mobile phones so it doesn't squish */
@media (max-width: 768px) {
    .cmp_article_list, 
    .media-list, 
    .sections .media-list,
    .issues_archive .media-list {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   4. ARTICLE & ISSUE STYLING (From your uploaded file)
   ========================================================= */
/* Styling the Article Cards */
.article-summary, 
.obj_article_summary, 
.media-list .media {
    margin-bottom: 0 !important; 
    margin-top: 0 !important;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.1);
    border: 1px solid #ddd;
    transition: box-shadow 0.3s, transform 0.3s;
    background-color: #FFFFFF !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-summary:hover, 
.obj_article_summary:hover, 
.media-list .media:hover {
    box-shadow: 0 12px 25px rgba(0, 51, 102, 0.2);
    transform: translateY(-3px);
    border-color: #007BFF;
}

.article-summary .media-heading a, 
.obj_article_summary .title a {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #003366 !important;
    line-height: 1.4;
}

/* Styling the Archives/Past Issues Cards */
.current_issue, 
.issue_summary, 
.pkp_issue_summary {
    padding: 25px;
    border-radius: 12px;
    background-color: #FFFFFF;
    margin-bottom: 0 !important; 
    border: 3px solid #003366;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.current_issue:hover, 
.issue_summary:hover, 
.pkp_issue_summary:hover {
    background-color: #FFFFFF;
    border-color: #007BFF;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

/* Pill-shaped PDF Buttons */
.article-summary .galley-link, 
.obj_article_summary .galley-link,
a.galley-link[href$=".pdf"], 
.galley-link.pdf {
    display: inline-block;
    padding: 8px 20px;
    margin-top: auto !important; /* Forces button to the bottom of the card */
    margin-bottom: 15px;
    background-color: #003366 !important;
    color: white !important;
    border: 2px solid #007BFF !important;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none !important;
    align-self: flex-start; 
}

.article-summary .galley-link:hover, 
.obj_article_summary .galley-link:hover,
a.galley-link[href$=".pdf"]:hover, 
.galley-link.pdf:hover {
    background-color: #007BFF !important;
    border-color: #003366 !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    color: #FFFFFF !important;
}

/* DOI text positioning */
.article-summary .item.doi {
    font-size: 13px;
    color: #555;
    word-break: break-all;
    margin-top: 10px;
}

/* =========================================================
   5. NAVIGATION MENU STYLING (Cleaned up)
   ========================================================= */
.navbar-default {
    background-color: #ffffff !important;
    border: none !important;
    border-bottom: 3px solid #003366 !important; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    padding: 5px 0;
}

.navbar-default .navbar-nav > li > a {
    color: #333333 !important;
    font-weight: 600 !important;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a {
    color: #007BFF !important; 
    background-color: #f4f6f9 !important; 
    border-radius: 6px;
}

/* =========================================================
   6. ANNOUNCEMENT BOXES
   ========================================================= */
.cmp_announcements .media, .announcements .media {
    background: #ffffff !important;
    border-left: 6px solid #ff9900 !important; 
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    transition: background 0.3s ease;
}

.cmp_announcements .media:hover, .announcements .media:hover {
    background: #fafcff !important;
}
