/* --- Color Palette Variables --- */
:root {
    --theme-dark: #0f3d2b;
    --theme-primary: #196f4c;
    --theme-accent: #2e8b57;
    --theme-accent-hover: #236b43;
    --hero-overlay: rgba(25, 111, 76, 0.85);
}

/* --- Typography & Globals --- */
body {
    /* Applied Poppins Font */
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fcfcfc;
}

/* --- Header & Modern Navbar --- */
.bg-theme-dark {
    background-color: var(--theme-dark) !important;
}

.kyamc-header-container {
    position: relative;
    text-align: center;
}

.kyamc-top-bar {
    background-color: #0b4625;
    /* Dark Green matching the image */
    height: 60px;
    border-bottom: 4px solid #f26522;
    /* Orange Divider Line */
}

.kyamc-logo {
    position: absolute;
    top: 10px;
    /* Adjust this to control how much it overlaps */
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 25%;
    border: 4px solid #ffffff;
    /* White border around logo */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1030;
    background-color: #fff;
}

.kyamc-bottom-bar {
    background-color: #116033;
    /* Slightly lighter green for the bottom part */
    /* If you want the background image overlay like the picture, uncomment the next 3 lines */
    /* background-image: url('path_to_your_building_bg.jpg'); */
    /* background-size: cover; */
    /* background-blend-mode: multiply; */
    padding-top: 75px;
    /* Space to clear the overlapping logo */
    padding-bottom: 20px;
}

.kyamc-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.navbar {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.navbar-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

/* Modern Hover Dropdowns for Desktop */
@media (min-width: 992px) {
    .modern-dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.2s ease-in;
    }
}

.dropdown-menu {
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(25, 111, 76, 0.08);
    color: var(--theme-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hero Section --- */
.hero-section {
    /* Fixed: Using a relative CSS path instead of Laravel Blade syntax */
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(232, 245, 233, 0.7) 100%),
        url('../images/polygonal19.jpg');

    /* 2. Explicitly tell the image to cover the whole area */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* 3. Ensure the container stretches properly */
    width: 100%;
    height: 380px;
    position: relative;
    border-bottom: 3px solid var(--theme-primary);
}

.hero-highlight {
    background-color: var(--theme-primary);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(25, 111, 76, 0.15);
}

/* --- Utilities & Buttons --- */
.text-theme-primary {
    color: var(--theme-primary) !important;
}

.btn-theme-accent {
    background-color: var(--theme-accent);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}

.btn-theme-accent:hover {
    background-color: var(--theme-accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3) !important;
}

/* --- Footer --- */
.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom-text {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 4rem 0;
    }

    .hero-highlight {
        width: 100% !important;
    }
}

/* --- Inner Page Specific Styles --- */

/* Banner for inner pages like About, Contact, etc. */
.inner-page-header {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-dark) 100%);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* Content Box Styling */
.content-wrapper {
    line-height: 1.8;
}

.content-wrapper h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
}

.content-wrapper h3:first-child {
    margin-top: 0;
}

/* Sidebar Specific Styles */
.list-group-item {
    background-color: transparent;
    border-color: rgba(0, 0, 0, 0.05);
}

.btn-outline-theme {
    color: var(--theme-primary);
    border: 1.5px solid var(--theme-primary);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-theme:hover {
    background-color: var(--theme-primary);
    color: #ffffff;
}

/* --- Editorial Board Specific Styles --- */

.editor-profile-section {
    position: relative;
}

/* Replicating the circular image with thick dark border */
.profile-img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border: 3px solid #1a2a3a;
    /* Dark border from the image */
    padding: 3px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Horizontal lines above and below the name */
.profile-name-block {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* Compact text formatting for profile details */
.profile-details p {
    margin-bottom: 0.15rem;
    /* Very tight spacing */
    font-size: 0.9rem;
    color: #2c2c2c;
    line-height: 1.4;
}

/* Academic Database Buttons */
.btn-academic {
    /* Using the theme accent (green) to match the template instead of the blue in the picture */
    background-color: var(--theme-primary);
    color: #ffffff;
    border-radius: 0;
    /* Square buttons exactly like the image */
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 1.5rem;
    border: none;
    transition: background-color 0.2s ease;
}

.btn-academic:hover,
.btn-academic:focus {
    background-color: var(--theme-dark);
    color: #ffffff;
}

/* =========================================
   Enterprise Journal Template - Full CSS
   ========================================= */

/* --- Color Palette Variables --- */
:root {
    --theme-dark: #0f3d2b;
    --theme-primary: #196f4c;
    --theme-accent: #2e8b57;
    --theme-accent-hover: #236b43;
    --hero-overlay: rgba(25, 111, 76, 0.85);
}

/* --- Typography & Globals --- */
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fcfcfc;
}

/* --- Header & Modern Navbar --- */
.bg-theme-dark {
    background-color: var(--theme-dark) !important;
}

.navbar {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.navbar-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

/* Modern Hover Dropdowns for Desktop */
@media (min-width: 992px) {
    .modern-dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.2s ease-in;
    }
}

.dropdown-menu {
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: rgba(25, 111, 76, 0.08);
    color: var(--theme-primary) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hero Section (Index Page) --- */
.hero-section {
    /* Fixed: Using a relative CSS path instead of Laravel Blade syntax */
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(232, 245, 233, 0.7) 100%),
        url('../images/polygonal19.jpg');

    /* 2. Explicitly tell the image to cover the whole area */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* 3. Ensure the container stretches properly */
    width: 100%;
    height: 380px;
    position: relative;
    border-bottom: 3px solid var(--theme-primary);
}

.hero-highlight {
    background-color: var(--theme-primary);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(25, 111, 76, 0.15);
}

/* --- Banner for Inner Pages (About, Universal) --- */
.inner-page-header {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-dark) 100%);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* --- Utilities & Buttons --- */
.text-theme-primary {
    color: var(--theme-primary) !important;
}

.bg-theme-primary {
    background-color: var(--theme-primary) !important;
}

.btn-theme-accent {
    background-color: var(--theme-accent);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}

.btn-theme-accent:hover {
    background-color: var(--theme-accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3) !important;
}

.btn-outline-theme {
    color: var(--theme-primary);
    border: 1.5px solid var(--theme-primary);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-theme:hover {
    background-color: var(--theme-primary);
    color: #ffffff;
}

/* --- Content Wrappers & Inner Elements --- */
.content-wrapper {
    line-height: 1.8;
}

.content-wrapper h3 {
    font-size: 1.4rem;
}

/* Blockquote / Alert Box Styling */
.alert-theme-soft {
    background-color: rgba(25, 111, 76, 0.05);
}

.border-theme-primary {
    border-color: var(--theme-primary) !important;
}

/* Custom Lists */
.custom-bullet-list {
    padding-left: 1.2rem;
}

.custom-bullet-list li {
    margin-bottom: 0.5rem;
}

.custom-bullet-list li::marker {
    color: var(--theme-primary);
}

.custom-ordered-list {
    padding-left: 1.2rem;
}

.custom-ordered-list li {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--theme-primary);
}

.custom-ordered-list li span,
.custom-ordered-list li::marker {
    color: var(--theme-primary);
}

/* Table Styling Overrides */
.table th {
    font-weight: 600;
}

.table-light {
    --bs-table-bg: #f8f9fa;
    --bs-table-border-color: #dee2e6;
}

/* Bootstrap Tabs Customization */
.custom-tabs .nav-link {
    color: #6c757d;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.5rem;
}

.custom-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--theme-primary);
}

.custom-tabs .nav-link.active {
    color: var(--theme-primary);
    background-color: transparent;
    border-color: transparent;
    border-bottom: 2px solid var(--theme-primary);
}

/* Bootstrap Accordion Customization */
.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--theme-primary);
    background-color: rgba(25, 111, 76, 0.05);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.custom-accordion .accordion-button:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.25rem rgba(25, 111, 76, 0.25);
}

/* Form Customization */
.custom-form .form-control:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.2rem rgba(25, 111, 76, 0.25);
}

/* --- Editorial Board Specific Styles --- */
.editor-profile-section {
    position: relative;
}

.profile-img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border: 3px solid #1a2a3a;
    padding: 3px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-name-block {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.profile-details p {
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
    color: #2c2c2c;
    line-height: 1.4;
}

.btn-academic {
    background-color: var(--theme-primary);
    color: #ffffff;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 1.5rem;
    border: none;
    transition: background-color 0.2s ease;
}

.btn-academic:hover {
    background-color: var(--theme-dark);
    color: #ffffff;
}

/* --- Sidebar Navigation --- */
.sidebar-nav .list-group-item {
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-color: rgba(0, 0, 0, 0.04);
}

.sidebar-nav .list-group-item:hover {
    background-color: #f8f9fa;
    color: var(--theme-primary) !important;
}

.active-sidebar-link {
    background-color: rgba(25, 111, 76, 0.05) !important;
    color: var(--theme-dark) !important;
    font-weight: 600;
}

@media (min-width: 992px) {
    .sticky-sidebar {
        position: sticky;
        top: 90px;
        z-index: 10;
    }
}

/* --- Footer --- */
.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom-text {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 4rem 0;
    }

    .hero-highlight {
        width: 100% !important;
    }
}