/* Global App Styles */

/* ============================================
   GLOBAL TYPOGRAPHY - FIGTREE FONT FAMILY
   ============================================ */

/* Base responsive settings */
html {
    font-size: 16px;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
    font-family: 'Figtree', sans-serif !important;
}

body {
    font-family: 'Figtree', sans-serif !important;
    background-color: #f8fafc;
    font-size: 0.9375rem; /* 15px - smaller for better look */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-width: 320px;
}

/* Logo Blue Color for Links */
a {
    color: rgb(32, 62, 115);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: rgb(25, 48, 90);
}

/* Logo Blue Color for Headings */
h1, h2, h3, h4, h5, h6 {
    color: rgb(32, 62, 115);
}

/* Standardized Font Sizes for All Pages */
/* COMMENTED OUT - Conflicts with inline styles in article cards and other components */
/* body, p, div, span, a, li, td, th {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
} */

/* Page Headers */
.journals-title,
.articles-title,
.conference-title,
.contact-title,
.page-title {
    font-size: 3rem !important;
}

/* Page Subtitles */
.journals-subtitle,
.articles-subtitle,
.conference-subtitle,
.contact-subtitle,
.page-subtitle {
    font-size: 1.3rem !important;
}

/* Section Headings */
.section-title {
    font-size: 2rem !important;
}

.section-subtitle {
    font-size: 1.1rem !important;
}

/* Card Titles */
.card-title {
    font-size: 1.2rem !important;
}

/* Card Text */
.card-text {
    font-size: 0.9375rem !important;
}

/* ============================================
   SEO-FRIENDLY HEADING SIZES (H1-H6)
   Standardized across all pages
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Figtree', sans-serif !important;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    margin-top: 0;
}

/* H1 - Page Main Title (LARGER for banners/hero sections) */
h1 {
    font-size: 2.5rem !important; /* 40px - Increased from 32px */
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* H1 in Hero/Banner sections - Extra Large */
.hero-title,
.banner-title,
.page-title {
    font-size: 1.7rem !important; /* 32px - Reduced from 48px */
    font-weight: 600 !important;
    line-height: 1.1 !important;
}

/* H2 - Section Headings */
h2 {
    font-size: 1.25rem !important; /* 28px */
    font-weight: 600 !important;
}

/* H3 - Sub-section Headings (24px) */
h3 {
    font-size: 1rem !important; /* 24px */
    font-weight: 600 !important;
}

/* H4 - Card Titles (20px) */
h4 {
    font-size: 1.1rem !important; /* 20px */
    font-weight: 600 !important;
}

/* H5 - Widget Titles (18px) */
h5 {
    font-size: 1.125rem !important; /* 18px */
    font-weight: 600 !important;
}

/* H6 - Small Headings (16px) */
h6 {
    font-size: 1rem !important; /* 16px */
    font-weight: 600 !important;
}

/* Responsive Heading Sizes for Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important; /* 32px on mobile */
    }
    
    .hero-title,
    .banner-title,
    .page-title {
        font-size: 2.25rem !important; /* 36px for banners on mobile */
    }
    
    h2 {
        font-size: 1.5rem !important; /* 24px on mobile */
    }
    
    h3 {
        font-size: 1.25rem !important; /* 20px on mobile */
    }
    
    h4 {
        font-size: 1.125rem !important; /* 18px on mobile */
    }
    
    h5 {
        font-size: 1rem !important; /* 16px on mobile */
    }
    
    h6 {
        font-size: 0.9375rem !important; /* 15px on mobile */
    }
}

/* Paragraph and text elements */
p, span, div, a, li, td, th {
    font-family: 'Figtree', sans-serif !important;
}

/* Smaller base font size for better look */
p {
    font-size: 0.9375rem; /* 15px */
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Responsive containers */
.container, .container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    /* padding-bottom: 2rem; */
}

.container {
    max-width: 1400px;
}

/* Navigation Styles — managed by global.css (.main-navbar) */

.navbar-brand {
    font-weight: 600;
    font-size: clamp(1rem, 3vw, 1.25rem);
}

/* Navbar Toggler - Remove Background */
.navbar-toggler {
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Global Button System */
.btn {
    font-family: 'Figtree', sans-serif !important;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem; /* 15px - smaller */
    line-height: 1.5;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:focus, .btn:active:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(30, 57, 111, 0.25);
}

.btn:disabled, .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Primary Buttons */
.btn-primary {
   background: linear-gradient(135deg, #1e3a6f 0%, #112d8d 100%) !important;
    border-color: transparent;
    color: white;
}

.btn-primary:hover {
   background: linear-gradient(135deg, #1e3a6f 0%, #112d8d 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 111, 0.4);
}

.btn-primary:active {
    background: linear-gradient(135deg, #162a51 0%, #5d5007 100%) !important;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(30, 58, 111, 0.3);
}

/* Secondary Buttons */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border-color: transparent;
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* Success Buttons */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border-color: transparent;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Danger Buttons */
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-color: transparent;
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Warning Buttons */
.btn-warning {
    background: linear-gradient(135deg, #960504 0%, #960504 100%);
    border-color: transparent;
    color: #212529;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #960504 0%, #960504 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Info Buttons */
.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-color: transparent;
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

/* Outline Buttons */
.btn-outline-primary {
    border: 2px solid rgb(32, 62, 115);
    color: rgb(32, 62, 115);
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #1e3a6f 0%, #7d6d09 100%) !important;
    border-color: transparent;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 111, 0.4);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    background: transparent;
}

.btn-outline-success:hover {
    background: #28a745;
    border-color: #28a745;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    background: transparent;
}

.btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-1px);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Button Groups */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
.footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 2rem 0 1rem;
}

.footer a {
    color: #0c1724 !important;
    text-decoration: none;
}

.footer a:hover {
    color: #044973 !important;
}

.text-light-gray {
    color: #a0aec0 !important;
}

/* Global Layout & Spacing */
.min-vh-75 {
    min-height: 75vh;
}

/* Consistent page sections */

section.hero-section,
section.journal-hero {
    padding: 5rem 0;
}

section:first-child {
    padding-top: 10px;
        min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #fff;

    
}


section:last-child {
    padding-bottom: 4rem;
}

/* Container consistency */
.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Header spacing */
.page-header {
    padding: 3rem 0;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Search section consistency */
.search-section {
    padding: 2rem 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

/* Card spacing */
.card-grid {
    margin-top: 2rem;
}

.card-grid .col-md-6,
.card-grid .col-lg-4 {
    margin-bottom: 2rem;
}

/* Responsive spacing */
@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Form Styles */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Input Group Styles */
.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
}

/* Text Colors */
.text-primary {
    color: #667eea !important;
}

/* Background Colors */
.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Journal Submit Button - Consistent across all pages */
.journal-submit-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.journal-submit-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.journal-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Navbar specific styling for submit button */
.navbar .journal-submit-btn {
    margin-left: 1rem;
}

.navbar-submit-btn {
    background: rgb(32, 62, 115) !important;
    border: none !important;
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    margin-left: 1rem !important;
    box-shadow: 0 2px 8px rgba(32, 62, 115, 0.3) !important;
}

.navbar-submit-btn:hover {
    background: rgb(25, 48, 90) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(32, 62, 115, 0.5) !important;
}

/* ================================================
   GLOBAL FONT SIZE STANDARDIZATION
   All pages use consistent typography
   ================================================ */

/* Page Headings - Reduced size and weight for professional look */
.page-heading,
.journals-title,
.articles-title,
.conference-title,
.about-title,
.contact-title {
    font-size: 1.75rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: #212529 !important;
}

/* Page Subheadings */
.page-subheading,
.journals-subtitle,
.articles-subtitle,
.conference-subtitle,
.about-subtitle,
.contact-subtitle {
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #6c757d !important;
}

/* Card Titles (Journal Names, Article Titles, etc.) - Smaller and lighter */
.card-title,
.journal-list-title,
.journal-card .card-title,
.article-card .card-title,
.conference-card .card-title {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #2d3748 !important;
}

/* Card Descriptions/Paragraphs */
.card-text,
.card-description,
.journal-list-description,
.journal-card .card-text,
.article-card .card-text,
.conference-card .card-text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #718096 !important;
}

/* Section Headings (within pages) - Professional and lighter */
.section-heading,
.section-title,
h2.section-heading {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #2d3748 !important;
}

/* Subsection Headings */
.subsection-heading,
h3.subsection-heading {
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #4a5568 !important;
}

/* Body Text */
.body-text,
p {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
}

/* Small Text (metadata, labels) */
.small-text,
.metadata-item,
.editor-position,
.editor-institution,
small {
    font-size: 0.85rem !important;
}

/* Stats Numbers */
.stat-number,
.stats-value {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

/* Stats Labels */
.stat-label,
.stats-label {
    font-size: 1rem !important;
}

/* Button Text */
.btn {
    font-size: 0.9375rem !important;
}

.btn-lg {
    font-size: 1.125rem !important;
}

.btn-sm {
    font-size: 0.875rem !important;
}

/* Responsive Font Adjustments */
@media (max-width: 992px) {
    .page-heading,
    .journals-title,
    .articles-title,
    .conference-title,
    .about-title,
    .contact-title {
        font-size: 1.5rem !important;
    }
    
    .page-subheading,
    .journals-subtitle,
    .articles-subtitle,
    .conference-subtitle,
    .about-subtitle,
    .contact-subtitle {
        font-size: 0.95rem !important;
    }
    
    .card-title,
    .journal-list-title {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 768px) {
    .page-heading,
    .journals-title,
    .articles-title,
    .conference-title,
    .about-title,
    .contact-title {
        font-size: 1.4rem !important;
    }
    
    .page-subheading,
    .journals-subtitle,
    .articles-subtitle,
    .conference-subtitle,
    .about-subtitle,
    .contact-subtitle {
        font-size: 0.9rem !important;
    }
    
    .card-title,
    .journal-list-title {
        font-size: 0.75rem !important;
    }
    
    .section-heading,
    .section-title {
        font-size: 1.3rem !important;
        font-weight: 500 !important;
    }
}

@media (max-width: 576px) {
    .page-heading,
    .journals-title,
    .articles-title,
    .conference-title,
    .about-title,
    .contact-title {
        font-size: 1.3rem !important;
    }
    
    .card-title,
    .journal-list-title {
        font-size: 0.75rem !important;
    }
}
