/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1A3A6B;
    --secondary-blue: #2C538C;
    --accent-orange: #FF6B35;
    --light-orange: #FFB366;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --background-light: #F8F9FA;
    --white: #FFFFFF;
    --border-light: #E9ECEF;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* --- Top Bar Redesign --- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: none;
  color: var(--white);
  z-index: 1000;
  overflow: hidden;
}

.announcement-section {
  background: var(--accent-orange) !important;
  color: var(--white) !important;
}

.call-for-paper-section {
  background: var(--accent-orange) !important;
  color: var(--white) !important;
}

.news-heading {
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  padding: 0.5rem 0.8rem;
  color: var(--white);
  flex-shrink: 0;
  border-radius: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

@media (max-width: 900px) {
  .news-heading {
    font-size: 0.8rem;
    padding: 0.5rem 0.4rem;
  }
  .announcement-content,
  .call-for-paper-content {
    font-size: 0.82rem;
  }
}

.announcement-content, .call-for-paper-content {
  font-size: 0.95rem;
  color: var(--white);
}

@media (max-width: 768px) {
  .announcement-content, .call-for-paper-content {
    font-size: 0.8rem;
    padding-left: .5rem;
    padding-right: .5rem;
  }
  .announcement-section, .call-for-paper-section {
    justify-content: flex-start !important;
    padding-left: .3rem;
    padding-right: .3rem;
  }
}

/* Restore scrolling for announcement and call for paper */
.announcement-scroll {
  display: flex;
  align-items: center;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.announcement-text {
  display: inline-block;
  padding-left: 100%;
  white-space: nowrap;
  animation: announcement-marquee 20s linear infinite;
  color: var(--white);
  font-size: 0.96rem;
}
@keyframes announcement-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.callforpaper-scroll {
  display: flex;
  align-items: center;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.callforpaper-text {
  display: inline-block;
  padding-left: 100%;
  white-space: nowrap;
  animation: callforpaper-marquee 30s linear infinite;
  color: var(--white);
  font-size: 0.96rem;
}
@keyframes callforpaper-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
/* Remove aggressive hiding of previous news-scroll, etc (undo previous block) */
.news-scroll, .news-item, .news-text {
  display: initial !important;
  all: unset !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
}

/* Header Styles */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.navbar-nav {
    margin-left: auto;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 1rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-orange) !important;
}

.navbar-nav .nav-link.active {
    color: var(--accent-orange) !important;
}

.navbar-nav .nav-item:first-child .nav-link {
    border-right: 1px solid var(--border-light);
    padding-right: 1.5rem;
    margin-right: 1rem;
}

.header-icons {
  display: flex;
  gap: 1.6rem;
  margin-left: 1rem;
  align-items: flex-end;
}

.icon-label-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.icon-label {
  font-size: 0.72rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1;
  margin-top: 0.32rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.77;
}
@media (max-width: 900px) {
  .icon-label {
    font-size: 0.65rem;
    margin-top: 0.23rem;
  }
}

.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.icon-circle:hover {
    transform: scale(1.05);
}

.icon-circle-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.icon-circle-small:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Main Content Layout */
.main-content {
    margin-top: 120px;
    min-height: calc(100vh - 120px);
    position: relative;
}

/* Hero Section */
.hero-section {
    background: var(--white);
    padding: 0;
}

.book-section {
    background: var(--accent-orange);
    padding: 0;
    border-radius: 0;
    color: var(--white);
    position: fixed;
    top: 120px;
    left: 0;
    height: calc(100vh - 120px);
    width: 33.333%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.book-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--white);
    z-index: 1;
}

.back-link {
    color: var(--secondary-blue);
    text-decoration: underline;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: inline-block;
    font-size: 0.9rem;
    position: relative;
    z-index: 3;
}

.back-link:hover {
    color: var(--primary-blue);
}

.book-cover {
    background: var(--secondary-blue);
    border-radius: 8px;
    padding: 2rem;
    color: var(--white);
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.book-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.book-details {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.book-image {
    width: 75%;
    height: 75%;
    background-image: url('../images/cover.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    position: relative;
    z-index: 2;
    margin: auto;
}

/* Content Section */
.content-section {
    background: var(--white);
    padding: 2rem;
    margin-right: 300px;
    min-height: calc(100vh - 80px);
    padding-left: 1rem;
    padding-bottom: 4rem;
}

.about-title {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.about-subtitle {
    color: var(--secondary-blue);
    text-decoration: underline;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: block;
}

.about-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.subscribe-btn {
    background: var(--primary-blue);
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    color: var(--white);
    font-weight: 700;
    font-size: 0.93rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.subscribe-btn:hover {
    background: var(--secondary-blue);
}

/* Articles Section */
.articles-title {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem 0;
    font-family: 'Georgia', serif;
}

.article-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.article-item:last-child {
    border-bottom: none;
}

.article-title-container {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.article-tag {
    background: var(--accent-orange);
    color: var(--white);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-block;
    align-self: flex-start;
    width: fit-content;
}

.article-title {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.article-title:hover {
    text-decoration: underline;
}

.article-authors {
    color: var(--secondary-blue);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.article-journal {
    color: var(--text-light);
    font-size: 0.8rem;
    text-decoration: underline;
}

.article-meta-row { display: flex; justify-content: space-between; align-items: center; margin-top: 0.13rem; }
.cite-article-link {
  font-size: 0.8rem;
  color: var(--accent-orange);
  text-decoration: underline;
  font-weight: normal;
  margin-left: 1rem;
  white-space: nowrap;
}
.cite-article-link:hover { color: var(--primary-blue); }

/* Journal Sidebar */
.journal-sidebar {
    position: fixed;
    top: 120px;
    right: 0;
    width: 280px;
    height: calc(100vh - 120px);
    background: var(--white);
    border-left: 1px solid var(--border-light);
    z-index: 10;
    overflow-y: auto;
}

.sidebar-content {
    padding: 2rem 1.5rem;
}

.sidebar-title {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.sidebar-divider {
    border: none;
    height: 1px;
    background: var(--border-light);
    margin: 0 0 1.5rem 0;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 1rem;
}

.sidebar-links li:last-child {
    margin-bottom: 0;
}

.sidebar-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.sidebar-links a:hover {
    color: var(--accent-orange);
}

/* Footer Styles */
.site-footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0 1rem 0;
    margin-top: 0;
    width: 100%;
    position: relative;
    z-index: 100;
}

.footer-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-left {
    flex: 1;
    max-width: 400px;
}

.footer-logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.footer-logo h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}

.social-media {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--light-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    color: var(--white);
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-info a {
    color: var(--white);
    text-decoration: underline;
}

.contact-info a:hover {
    color: var(--light-orange);
}

.footer-right {
    flex: 2;
    margin-left: 3rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--light-orange);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--white);
}

.footer-bottom p a {
    color: var(--white);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img,
    .navbar .d-flex img {
        height: 40px !important;
    }
    
    .navbar .d-flex {
        justify-content: space-between;
        width: 100%;
    }
    
    .navbar .d-flex img:not(.navbar-brand img) {
        order: 2;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        margin-top: 80px;
    }
    
    .book-section {
        position: relative;
        width: 100%;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        padding: 1rem;
    }
    
    .book-image {
        width: 80%;
        height: 80%;
        margin: 0;
    }
    
    .content-section {
        margin-left: 0;
        margin-right: 0;
        margin-top: 150px;
    }
    
    .journal-sidebar {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        margin-top: 2rem;
        border-left: none;
        border-top: 1px solid var(--border-light);
    }
    
    .sidebar-content {
        padding: 2rem 1.5rem;
    }
    
    .about-title {
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .footer-right {
        margin-left: 0;
        margin-top: 2rem;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-logo h1 {
        font-size: 1.8rem;
    }
    
    .footer-logo h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .main-content {
        margin-top: 10px;
    }
    
    .book-section {
        height: 100vh;
        background: transparent;
        padding: 0.5rem;
    }
    
    .book-image {
        width: 100%;
        height: 100%;
        margin: 0;
    }
    
    .content-section {
        margin-top: 150px;
        margin-right: 0;
        padding: 1.5rem;
    }
    
    .journal-sidebar {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        margin-top: 2rem;
        border-left: none;
        border-top: 1px solid var(--border-light);
    }
    
    .sidebar-content {
        padding: 1.5rem 1rem;
    }
    
    .about-title {
        font-size: 1.3rem;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-logo h1 {
        font-size: 1.6rem;
    }
    
    .footer-logo h2 {
        font-size: 1rem;
    }
    
    .social-media {
        gap: 0.8rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
}

/* Orange backgrounds for both sections */
.announcement-section, .call-for-paper-section {
  background: var(--primary-blue) !important;
  color: var(--white) !important;
}

/* Pill styling for the headings */
.heading-pill-announcement, .heading-pill-callforpaper {
  background: var(--accent-orange) !important;
  color: var(--white) !important;
  font-weight: 700;
  border-radius: 20px;
  padding: 0.3rem 1.1rem;
  margin-right: 1rem;
  font-size: 0.93rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(27, 27, 27, 0.05);
}
.heading-pill-announcement {
  min-width: 110px;
}
.heading-pill-callforpaper {
  min-width: 120px;
}

.announcement-move-bg, .callforpaper-move-bg {
  background: var(--primary-blue) !important;
  height: 40px;
  border-radius: 0;
  padding: 0 !important;
}
.callforpaper-move-bg {
  width: auto;
}
@media (min-width: 992px) {
  .call-for-papers-wrapper {
    margin-left: auto;
  }
}
.announcement-text, .callforpaper-text {
  color: #fff !important;
  font-size: 0.96rem;
  white-space: nowrap;
  font-weight: 500;
  margin-right: 1rem;
}
.callforpaper-text a, .announcement-text a {
  color: #fff !important;
  text-decoration: underline;
  text-decoration-color: var(--light-orange);
}
.callforpaper-text a:hover, .announcement-text a:hover {
  color: var(--light-orange) !important;
}

/* Maintain scrolling marquee */
.announcement-text {
  display: inline-block;
  padding-left: 100%;
  animation: announcement-marquee 20s linear infinite;
}
@keyframes announcement-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.callforpaper-text {
  display: inline-block;
  padding-left: 100%;
  animation: callforpaper-marquee 30s linear infinite;
}
@keyframes callforpaper-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 900px) {
  .heading-pill-announcement, .heading-pill-callforpaper {
    font-size: 0.85rem;
    padding: 0.22rem 0.7rem;
    min-width: 80px;
  }
  .announcement-text, .callforpaper-text {
    font-size: 0.81rem;
  }
  .announcement-move-bg, .callforpaper-move-bg {
    height: 32px;
  }
}
@media (max-width: 600px) {
  .announcement-section, .call-for-paper-section {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
  .announcement-move-bg, .callforpaper-move-bg {
    height: 27px;
  }
}

.about-more-link, .about-less-link { color: var(--accent-orange); text-decoration: underline; cursor:pointer; font-size: 0.92rem; }

.footer-logo h1 { font-size: 1.6rem !important; }
.footer-logo h2 { font-size: 1rem !important; }

.footer-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; width: 100%; }
@media (max-width:900px) { .footer-columns { gap: 1.5rem; } }

/* Call For Papers Page */
.inner-page-main {
    margin-top: 120px;
    min-height: calc(100vh - 120px);
    background: var(--background-light);
    padding: 2.5rem 0;
}

.inner-page-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 22px rgba(26, 58, 107, 0.08);
    padding: 2rem;
}

.inner-page-title {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.inner-page-intro {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.cfp-list {
    margin: 0 0 1.5rem 0;
    padding-left: 1.2rem;
}

.cfp-list li {
    margin-bottom: 0.9rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.cfp-list strong {
    color: var(--primary-blue);
}

.cfp-closing {
    margin-top: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.callforpaper-link-pill {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.callforpaper-link-pill:hover {
    color: var(--white);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .inner-page-main {
        margin-top: 80px;
        padding: 1.2rem 0;
    }

    .inner-page-card {
        padding: 1.3rem;
    }

    .inner-page-title {
        font-size: 1.5rem;
    }
}

/* Sidebar: hide placeholder links until pages exist (markup kept in HTML) */
.journal-sidebar .sidebar-links li:nth-child(2),
.journal-sidebar .sidebar-links li:nth-child(4),
.journal-sidebar .sidebar-links li:nth-child(5),
.journal-sidebar .sidebar-links li:nth-child(6) {
    display: none !important;
}

/* Header: hide Cart / Account (desktop + mobile top bar); markup kept in HTML */
.navbar .header-icons,
.top-bar .top-bar-icons {
    display: none !important;
}
