/* 4. GLOBAL LINK STYLING (REMOVING OJS BLUE) */
a {
    color: #800000 !important;
    text-decoration: none;
}

/* Modern professional font stack */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Wider content area for better readability */
.pkp_structure_main {
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 2rem;
}

.pkp_structure_head {
    background-image: 
        linear-gradient(to bottom, rgba(220, 20, 60, 0.1), rgba(220, 20, 60, 0.4)), 
        url(https://journals.msuiit.edu.ph/public/journals/4/homepageImage_en_US.jpg) !important;
    background-size: cover;
    background-position: center;
}
.pkp_head_wrapper {
    padding-top: 15.286rem;
}

.pkp_site_name_wrapper {
     height: auto;
     padding-bottom: 5rem;
}
.pkp_site_name .is_text {
     color: #fff !important;
     font-size: 2.714rem;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
/* Navigation bar modernization */
.pkp_site_nav_menu .pkp_nav_list {
    margin: 10px !important;
}
.pkp_site_nav_menu {
  background-color: #dc143c; /* Crimson */
  border-bottom: 3px solid #d4af37; /* Gold accent */
}

.pkp_navigation_primary a {
  color: white !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Top-level main menu links */
.pkp_navigation_primary > li > a {
    color: #fff !important;
}
.pkp_navigation_primary>li>a:focus {
    background: #800000 !important;
}
/* Dropdown menu links */
.pkp_navigation_primary ul li a {
    color: #800000 !important;
}
.pkp_navigation_primary .dropdown-menu a:hover {
        border-color: #800000 !important;
}
.pkp_brand_footer {
    padding: 0;
    display: none !important;
}
/* 6. ACTION BUTTONS (Submit & Guide for Authors) */
.pkp_block.make_submission a,
.action_links a {
    background: #ffffff !important;
    color: #800000 !important;
    border: 1px solid #800000 !important;
    border-radius: 2px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    padding: 8px 16px !important;
    transition: all 0.2s;
}

.pkp_block.make_submission a:hover {
    background: #800000 !important;
    color: #ffffff !important;
}

/* 7. ARTICLE CARDS & TITLES (AUTHORITATIVE HIERARCHY) */
/* Article list items */
.obj_article_summary {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Subtle shadow */
  transition: transform 0.2s ease-in-out;
}

.obj_article_summary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.obj_article_summary .title a {
  color: #2c3e50;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
/* PDF Download Button */
.obj_galley_link.pdf {
  background-color: #dc143c;
  color: white !important;
  padding: 8px 20px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s;
}

.obj_galley_link.pdf:hover {
  background-color: #a00d2c;
  text-decoration: none;
}
/* Creates a subtle dark strip at the very top for utility links */
.pkp_navigation_user_wrapper {
    /*	background: rgba(0, 0, 0, 0.5);  Dark transparent bar */
    padding: 8px 0;
    text-align: right;
}

.pkp_navigation_user a {
    background: rgb(239 62 110 / 50%);
    color: #ffffff !important;
    font-size: 0.85rem;
    margin-left: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.pkp_navigation_user a:hover {
    color: #d4af37 !important; /* Gold hover effect */
}
/* Slim down the search bar and add a border accent */
.pkp_structure_head .pkp_search {
    background-color: #dc143c !important; /* Crimson */
    padding: 15px 0;
    /* border-bottom: 4px solid #d4af37; /* Gold bottom border */
    color: #fff !important;
}

/* Improve the Search Text/Icon */
.pkp_search a {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between icon and text */
}

/* Add a subtle glow on hover */
.pkp_search:hover {
    filter: brightness(1.1);
    cursor: pointer;
}
/* PROFESSIONAL GUIDELINE STYLING */
    .guideline-container {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        line-height: 1.7;
        color: #333;
        max-width: 1000px;
        margin: 0 auto;
        padding: 40px 20px;
        background: #fff;
    }

    /* HEADER SECTION */
    .guideline-header {
        border-bottom: 3px solid #800000;
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .guideline-header h1 {
        color: #800000;
        font-size: 2.2rem;
        font-weight: 800;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: -0.5px;
    }

    .guideline-meta {
        color: #666;
        font-size: 0.9rem;
        margin-top: 10px;
        display: flex;
        gap: 20px;
    }

    /* TYPOGRAPHY HIERARCHY */
    .guideline-section h2 {
        color: #800000;
        font-size: 1.5rem;
        border-left: 5px solid #800000;
        padding-left: 15px;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .guideline-section h3 {
        color: #1a1a1a;
        font-size: 1.2rem;
        font-weight: 700;
        margin-top: 25px;
    }

    /* TEXT BLOCKS */
    .guideline-text {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
        text-align: justify;
    }

    /* PROFESSIONAL CALLOUTS */
    .important-note {
        background: #fdf2f2;
        border: 1px solid #ffcdd2;
        border-left: 5px solid #d32f2f;
        padding: 20px;
        margin: 25px 0;
        border-radius: 4px;
    }

    /* LIST STYLING */
    .guideline-list {
        padding-left: 20px;
        margin-bottom: 25px;
    }

    .guideline-list li {
        margin-bottom: 10px;
        position: relative;
    }

    /* DOWNLOAD/ACTION BUTTONS */
    .template-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #f8f9fa;
        border: 1px solid #e0e0e0;
        padding: 15px 25px;
        border-radius: 4px;
        margin: 20px 0;
    }

    .btn-crimson {
        background: #800000;
        color: #fff !important;
        padding: 10px 20px;
        text-decoration: none;
        font-weight: 600;
        border-radius: 3px;
        font-size: 0.9rem;
        transition: 0.3s;
    }

    .btn-crimson:hover {
        background: #600000;
    }

/* WRAPPING FIX FOR COVER LETTER TEMPLATES */
.template-pre {
    background-color: #fcfcfc !important;
    border: 1px solid #e1e1e1 !important;
    padding: 25px !important;
    font-family: 'Courier New', Courier, monospace !important; /* Professional typewriter feel */
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #333 !important;
    
    /* CRITICAL WRAPPING PROPERTIES */
    white-space: pre-wrap !important;       /* CSS3 - preserves spaces but wraps */
    white-space: -moz-pre-wrap !important;  /* Firefox */
    white-space: -pre-wrap !important;       /* Opera 4-6 */
    white-space: -o-pre-wrap !important;     /* Opera 7 */
    word-wrap: break-word !important;       /* IE/Edge */
    
    overflow-x: auto !important;            /* Adds a scrollbar ONLY if wrapping fails */
    max-width: 100% !important;             /* Ensures it never exceeds the parent container */
    border-radius: 2px;
}

/* RESPONSIVE ETHICS PAGE CORE */
.ethics-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* TABLE RESPONSIVENESS */
.responsive-table-wrapper {
    width: 100%;
    overflow-x: auto; /* Adds horizontal scroll only for the table on small screens */
    margin: 20px 0;
    border: 1px solid #eee;
}

.ethics-table {
    width: 100%;
    min-width: 500px; /* Ensures table content doesn't get squashed */
    border-collapse: collapse;
}

.ethics-table th, .ethics-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* GRID TO STACK CONVERSION (For Section I Pillars) */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 25px 0;
}

/* MOBILE ADJUSTMENTS */
@media only screen and (max-width: 768px) {
    .pillar-grid {
        grid-template-columns: 1fr 1fr; /* 2x2 grid on tablets */
    }
    
    .guideline-header h1 {
        font-size: 1.7rem !important; /* Smaller text for mobile headers */
    }
}

@media only screen and (max-width: 480px) {
    .pillar-grid {
        grid-template-columns: 1fr; /* Full stack on phones */
    }
    
    .ethics-container {
        padding: 15px;
    }
    
    .important-note {
        padding: 15px !important;
    }
}