* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

/* body {
    background: #f5f7fa;
    color: #333;
} */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* GLOBAL RESET & FONT */
body {
    font-family: 'Inter', sans-serif;
    padding-top: 80px;
    /* Prevents hero from hiding under fixed header */
}

/* HEADER STYLING */
.main-header {
    background: rgba(13, 43, 82, 0.95);
    /* Deep blue with slight transparency */
    backdrop-filter: blur(10px);
    /* Modern frosted glass effect */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO SECTION */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    margin-right: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-name span.tld {
    color: #4da3ff;
}

.tagline {
    color: #4da3ff;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* NAVIGATION LINKS */
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #4da3ff;
}

/* CTA BUTTON IN MENU */
.nav-btn {
    background: #4da3ff;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.nav-btn:hover {
    background: #ffffff;
    color: #0d2b52 !important;
    transform: translateY(-2px);
}

/* DROPDOWN LOGIC (CSS ONLY) */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li a {
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content li a:hover {
    background: #f8faff;
    color: #4da3ff;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #0d2b52 0%, #1a4a8e 100%);
    color: white;
    padding: 100px 0;
    overflow: hidden;
}

.hero-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h2 span {
    color: #4da3ff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 550px;
}

.badge {
    background: rgb(4, 67, 134);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.badge-apply {
    background: rgba(8, 85, 167, 0.74);
    color: #b7c6d6;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.hero-wrapper {
    position: relative;
    padding: 120px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-image: url('../assets/img/academic-bg.webp');
    /* Use a high-res image of a modern library or digital network */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect for a richer feel */
    overflow: hidden;
}

/* The Overlay that ensures text readability */
/* .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 3, 97, 0.452) 0%, rgba(13, 43, 82, 0.6) 100%);
    z-index: 1;
} */

.hero-overlay-apply {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 42, 82, 0.082) 0%, rgba(1, 11, 24, 0.6) 100%);
    z-index: 1;
}

.hero-flex-container {
    position: relative;
    z-index: 2;
    /* Keeps content above the overlay */
    display: flex;
    align-items: center;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* BUTTONS */
.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background: #4da3ff;
    color: white;
}

.btn-primary:hover {
    background: #3a8ee6;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #0d2b52;
}

/* IMAGE AREA */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .hero-flex-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }
}

/* PLATFORM */
.platform {
    padding: 60px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 10px;
}

/* WORKFLOW */
.workflow {
    background: #e9eef5;
    padding: 50px 0;
    text-align: center;
}

.steps span {
    display: inline-block;
    margin: 10px;
    padding: 10px 15px;
    background: #0d2b52;
    color: white;
    border-radius: 20px;
}

/* FEATURES */
.features {
    background: #ffffff;
    /* Contrast against the light grey background */
    padding: 80px 0;
}

.feature {
    background: #f8faff;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #e1e8f0;
    transition: all 0.3s ease;
}

.feature:hover {
    background: #ffffff;
    border-color: #4da3ff;
    box-shadow: 0 10px 20px rgba(13, 43, 82, 0.1);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature h4 {
    color: #0d2b52;
    margin-bottom: 10px;
}

.feature p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* FAT FOOTER STYLING */
.main-footer {
    background: #091e3b;
    /* A deeper, richer blue than the main header */
    color: #a1b0c9;
    /* Subdued grey-blue text for legibility without harsh contrast */
    padding: 80px 0 0;
    /* Minimal bottom padding because of footer-bottom */
    font-size: 0.9rem;
    border-top: 4px solid #4da3ff;
    /* Visual highlight */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.brand-col h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}

.footer-tagline {
    margin: 15px 0;
    line-height: 1.6;
}

.links-col ul {
    list-style: none;
    padding: 0;
}

.links-col ul li {
    margin-bottom: 10px;
}

.links-col ul li a {
    color: #a1b0c9;
    text-decoration: none;
    transition: 0.3s;
}

.links-col ul li a:hover {
    color: #4da3ff;
    padding-left: 5px;
    /* Subtle interaction effect */
}

/* Badge Styling (Requires placing crossref-badge.webp and ojs-badge.webp in assets) */
.certification-badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.certification-badges img {
    height: 35px;
    filter: grayscale(100%) opacity(70%);
    /* Muted until hover */
    transition: 0.3s;
}

.certification-badges img:hover {
    filter: grayscale(0%) opacity(100%);
}

/* FOOTER BOTTOM */
.footer-bottom {
    background: #06162a;
    /* Near-black for maximum depth */
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.managed-by {
    color: #4da3ff;
    text-decoration: none;
    font-weight: 600;
}

.tech-line {
    display: flex;
    gap: 15px;
    color: rgba(255, 255, 255, 0.4);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Step Buttons Styling */
.step-btn {
    display: inline-block;
    margin: 10px;
    padding: 12px 20px;
    background: #0d2b52;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.step-btn:hover {
    background: #4da3ff;
}

/* Modal Overlay */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

/* Modal Box */
.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: left;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.modal-content h3 {
    color: #0d2b52;
    margin-bottom: 10px;
}

.modal-content hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin-bottom: 15px;
}

.modal-content p {
    line-height: 1.6;
    color: #555;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    /* Indicates it is clickable */
}

.card:hover {
    transform: translateY(-5px);
    /* Lift effect */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left: 5px solid #4da3ff;
    /* Visual highlight */
}

.card h3 {
    margin-bottom: 10px;
    color: #0d2b52;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

/* APPLY PAGE SPECIFIC STYLES */
.apply-hero {
    position: relative;
    padding: 80px 0;
    background: url('../assets/img/apply-bg.webp') center/cover fixed;
    text-align: center;
    color: rgb(255, 255, 255);
}

.hero-text-center h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.form-wrapper-card {
    max-width: 900px;
    margin: -60px auto 80px;
    /* Pulls the card up into the hero */
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;
}

.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #4da3ff;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-section {
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

/* Modern Input Styling */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: #f9fbff;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
    transition: 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4da3ff;
    background: white;
    box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.1);
}

/* The Submit Button */
.submit-btn-rich {
    background: linear-gradient(to right, #0d2b52, #1d5fa7);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 10px 20px rgba(13, 43, 82, 0.2);
}

.submit-btn-rich:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(13, 43, 82, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-wrapper-card {
        padding: 25px;
        margin-top: -30px;
    }
}

/* VIEW DIAGRAM STYLING */
/* Ensure the modal background covers the whole screen and centers the content */
.diagram-viewer-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Darker backdrop for focus */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Prevent the main body from scrolling */
}

/* The fixed close button */
.fixed-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2100;
}

.large-modal {
    max-height: 90vh;
    /* Limits modal to 90% of screen height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Keeps header and footer fixed while content scrolls */
    width: 90%;
    max-width: 1100px;
    background: white;
    border-radius: 15px;
}

/* The scrollable area for the large image */
.diagram-scroll-viewport {
    overflow-y: auto;
    padding: 20px;
    background: #f0f2f5;
    flex-grow: 1;
    /* Takes up available space between header and footer */
}

.responsive-diagram {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.modal-footer {
    padding: 20px 40px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer .disclaimer {
    font-size: 0.85rem;
    color: #888;
    max-width: 50%;
}

@media (max-width: 768px) {
    .large-modal {
        padding: 20px !important;
    }

    .modal-footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .modal-footer .disclaimer {
        max-width: 100%;
    }
}

.payment-body {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.pay-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.pay-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    border-top: 5px solid #0d2b52;
}

.pay-header {
    text-align: center;
    margin-bottom: 30px;
}

.pay-logo {
    height: 50px;
    margin-bottom: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.detail-row strong {
    color: #0d2b52;
    text-align: right;
    max-width: 60%;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.total-row span {
    font-size: 1.1rem;
    font-weight: 600;
}

.total-row .price {
    font-size: 1.5rem;
    color: #2ecc71;
}

.btn-pay-now {
    width: 100%;
    background: #0d2b52;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 30px;
    transition: 0.3s;
}

.btn-pay-now:hover {
    background: #081d3a;
    transform: translateY(-2px);
}

.pay-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #adb5bd;
    margin-top: 20px;
}

/* This centers the container exactly in the middle of the browser window */
.payment-screen-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f7f9;
    padding: 200px;
}

.pay-container {
    width: 100%;
    max-width: 480px;
    /* Keeps the card from becoming too wide on desktop */
}

.pay-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-top: 6px solid #0d2b52;
    /* Mai Markazi branding color */
}

/* Ensure the logo is also centered within the header */
.pay-header {
    text-align: center;
    margin-bottom: 25px;
}

.pay-logo {
    max-height: 60px;
    margin-bottom: 15px;
}

/* Detail styling for clean lines */
.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.detail-row strong {
    text-align: right;
    color: #333;
}

.pricing-container {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-header h1 {
    color: #0d2b52;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border: 2px solid #0d2b52;
    transform: scale(1.05);
}

.ribbon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #0d2b52;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price-box {
    margin: 20px 0;
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0d2b52;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    vertical-align: top;
    margin-top: 10px;
    display: inline-block;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    flex-grow: 1;
}

.feature-list li {
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95rem;
}

.feature-list i {
    color: #2ecc71;
    margin-right: 10px;
}

.btn-pricing {
    display: block;
    text-align: center;
    padding: 15px;
    background: #0d2b52;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-pricing:hover {
    background: #081d3a;
}

.about-hero {
    background: linear-gradient(135deg, #0d2b52 0%, #1a4a8e 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
    margin-top: 50px;
}

.about-sidebar .sticky-nav {
    position: sticky;
    top: 100px;
    list-style: none;
    padding: 0;
}

.sticky-nav li a {
    display: block;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-left: 3px solid #eee;
    transition: 0.3s;
    font-weight: 500;
}

.sticky-nav li a:hover {
    color: #0d2b52;
    border-left-color: #0d2b52;
    background: #f8f9fa;
}

.about-main h2 {
    color: #0d2b52;
    margin-bottom: 20px;
    font-size: 2rem;
}

.about-main article {
    margin-bottom: 40px;
    line-height: 1.8;
    color: #444;
}

.pro-note {
    background: #f0f7ff;
    border-left: 5px solid #0d2b52;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.pro-note strong {
    color: #0d2b52;
    display: block;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        display: none;
    }
}

.about-hero {
    position: relative;
    /* Replace 'hero-bg.jpg' with your actual image path */
    background-image: url('../assets/img/apply-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect for professional feel */
    color: white;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

/* Dark overlay to make white text pop */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 43, 82, 0.75);
    z-index: 1;
}

/* Ensures content stays above the overlay */
.relative-z {
    position: relative;
    z-index: 2;
}

.badge-light {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.faq-hero {
    background-image: url('../img/faq-bg.jpg');
    /* Use an image of a clean workspace or library */
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 50px;
}

.faq-category h2 {
    color: #0d2b52;
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.faq-item {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #0d2b52;
    transition: 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fcfcfc;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Large enough to hold text */
    padding: 0 20px 20px 20px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
}

.security-grid,
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.content-box,
.guide-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.guide-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: #0d2b52;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.guide-card i {
    font-size: 2.5rem;
    color: #0d2b52;
    margin-bottom: 15px;
}

.legal-text h3 {
    margin-top: 30px;
    color: #0d2b52;
}

.author-hero {
    background-image: url('../img/author-bg.jpg');
    /* Suggest an image of a scholarly desk or writing */
}

/* Checklist Styling */
.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #28a745;
    /* Success Green */
    font-weight: bold;
}

/* Call to Action Box */
.cta-box {
    background: #f0f7ff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 2px dashed #0d2b52;
}

.cta-box h3 {
    margin-bottom: 15px;
    color: #0d2b52;
}

.cta-box .submit-btn-rich {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
}

.editor-hero {
    background-image: url('../img/editor-bg.jpg');
    /* Use an image of a digital dashboard or office */
}

/* Workflow List Styling */
.workflow-list {
    counter-reset: workflow-counter;
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.workflow-list li {
    counter-increment: workflow-counter;
    position: relative;
    padding: 20px 20px 20px 60px;
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.workflow-list li::before {
    content: counter(workflow-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #0d2b52;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.workflow-list li:hover {
    border-color: #0d2b52;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.reviewer-hero {
    background-image: url('../img/reviewer-bg.jpg'); /* Image of a magnifying glass or critical reading */
}

/* Steps Layout */
.step-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.step-bit {
    padding: 15px 20px;
    background: #fdfdfd;
    border-left: 4px solid #0d2b52;
    border-top: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    border-radius: 0 5px 5px 0;
}

/* Table Styling */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}

.modern-table th, .modern-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.modern-table th {
    background: #0d2b52;
    color: white;
}

.modern-table tr:hover {
    background: #f9f9f9;
}
/* 1. Guides Grid Layout */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.guide-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.guide-card i {
    font-size: 2.5rem;
    color: #0d2b52; /* Mai Markazi Navy */
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.guide-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #0d2b52;
}

.guide-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.guide-card:hover {
    transform: translateY(-8px);
    border-color: #0d2b52;
    box-shadow: 0 12px 24px rgba(13, 43, 82, 0.1);
}

.guide-card:hover i {
    transform: scale(1.1);
}

/* 2. Feedback Form Section */
.feedback-form {
    max-width: 700px;
    margin: 60px auto;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #eee;
}

.feedback-form h3 {
    color: #0d2b52;
    margin-bottom: 10px;
    font-size: 1.75rem;
}

.feedback-form p {
    margin-bottom: 30px;
    color: #555;
}

.feedback-form input[type="text"],
.feedback-form input[type="email"],
.feedback-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: #0d2b52;
    background: #fff;
}

.feedback-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* 3. The Submit Button (Matching your existing rich style) */
.submit-btn-rich {
    background: #0d2b52;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.submit-btn-rich:hover {
    background: #1a4a8e;
    transform: translateY(-2px);
}

.submit-btn-rich:active {
    transform: translateY(0);
}

/* Horizontal Rule override */
.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
    border: 0;
    border-top: 1px solid #eee;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .feedback-form {
        padding: 25px;
    }
}
/* Maintenance & Progress specific styles */
.status-badge.maintenance {
    background: #fff5f5;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

.maintenance-text {
    color: #e53e3e;
    font-weight: 600;
    font-size: 0.85rem;
}

.processing-text {
    color: #3182ce;
    font-weight: 500;
    font-size: 0.85rem;
    font-style: italic;
}

/* Visual cue for Maintenance cards */
.journal-card.status-maintenance {
    border-left: 5px solid #e53e3e;
    background-color: #fffafb;
}

/* Visual cue for Pending/Approved cards */
.journal-card.status-pending, 
.journal-card.status-approved {
    border-left: 5px solid #3182ce;
}

.active-link {
    color: #2b6cb0;
    text-decoration: underline;
    font-weight: bold;
}
/* Registry Container */
.registry-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow-x: auto;
    border: 1px solid #e1e8ef;
}

.registry-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.registry-table th {
    background: #f8fabb; /* Subdued top bar */
    background: linear-gradient(to bottom, #ffffff, #f1f5f9);
    padding: 20px;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.registry-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.registry-table tr:hover {
    background-color: #f8fafc;
}

/* Journal Name & Initial */
.j-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.j-initial {
    width: 42px;
    height: 42px;
    background: #0d2b52;
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.j-full-name {
    display: block;
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.j-discipline {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Badges & Text */
.issn-badge {
    font-family: 'Courier New', Courier, monospace;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #475569;
}

.freq-text {
    font-size: 0.9rem;
    color: #475569;
}

.freq-text i {
    color: #0d2b52;
    margin-right: 5px;
}

/* Status Pills */
.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pill.active { background: #dcfce7; color: #15803d; }
.status-pill.pending { background: #fef9c3; color: #854d0e; }
.status-pill.approved { background: #dbeafe; color: #1e40af; }
.status-pill.maintenance { background: #fee2e2; color: #991b1b; }

/* Progress & Buttons */
.progress-report {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

.btn-visit {
    background: #0d2b52;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s;
}

.btn-visit:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: 60px !important;
    color: #94a3b8;
}
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
/* Hero Section */
.contact-hero {
    padding: 80px 0 80px;
    background: linear-gradient(to bottom, #0d2b52 0%, #1a4a8e);
    color: white;
}

/* Grid Layout */
.contact-master-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: -60px; /* Slight overlap into hero */
}

/* Info Cards */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    transition: 0.3s;
}

.info-card:hover {
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #0d2b52;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-text h4 {
    margin-bottom: 5px;
    color: #0d2b52;
}

/* Master Form */
.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.form-header {
    margin-bottom: 35px;
}

.form-header h3 {
    font-size: 2rem;
    color: #1e293b;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.9rem;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #0d2b52;
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 43, 82, 0.1);
}

.btn-master {
    width: 100%;
    padding: 18px;
    background: #0d2b52;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.btn-master:hover {
    background: #1a4a8e;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-master-grid {
        grid-template-columns: 1fr;
    }
    .contact-hero {
        padding: 80px 0 40px;
    }
}
/* --- Categorized Directory Styles --- */

.section-padding {
    padding: 80px 0;
}

/* 1. Discipline Group Headers */
.discipline-group-header {
    background: #fff;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    border-bottom: 3px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-top: 60px !important;
}

.discipline-group-header h2 {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

/* 2. Registry Container Fixes */
.registry-container {
    background: #fff;
    border-radius: 0 0 12px 12px;
    padding: 0 20px 20px 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07);
    overflow-x: auto;
}

.registry-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* Creates the "card" row effect */
}

.registry-table thead th {
    padding: 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
}

/* 3. Journal Row Styling */
.registry-table tbody tr {
    background: #fdfdfd;
    transition: all 0.2s ease;
}

.registry-table tbody tr:hover {
    transform: scale(1.005);
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.registry-table td {
    padding: 20px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* 4. Initial & Name Layout */
.j-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.j-initial {
    width: 45px;
    height: 45px;
    background: #0d2b52;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(13, 43, 82, 0.2);
}

.j-full-name {
    display: block;
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.4;
}

/* 5. Badges & Pills */
.issn-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pill {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.status-pill.active { background: #dcfce7; color: #15803d; }
.status-pill.approved { background: #dbeafe; color: #1e40af; }
.status-pill.pending { background: #fef9c3; color: #854d0e; }
.status-pill.maintenance { background: #fee2e2; color: #991b1b; }

/* 6. Buttons */
.btn-visit {
    background: #0d2b52;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
    display: inline-block;
}

.btn-visit:hover {
    background: #3b82f6;
    color: #fff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .j-flex { flex-direction: column; align-items: flex-start; gap: 8px; }
    .registry-table thead { display: none; } /* Hide headers on tiny screens */
    .registry-table td { display: block; width: 100%; border: none; padding: 10px 15px; }
}
/* Ensure the parent is the reference point */
.nav-item.dropdown {
    position: relative;
    display: inline-block;
}

/* Hide the menu by default */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* Places it exactly below the link */
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 999;
    list-style: none;
    padding: 10px 0;
    border-radius: 4px;
    border-top: 3px solid #003366; /* Match your brand blue */
}

/* Show the menu on hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* Style the individual links in the dropdown */
.dropdown-menu li a {
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background 0.2s;
}

/* Hover state for dropdown items */
.dropdown-menu li a:hover {
    background-color: #f1f1f1;
    color: #003366;
}

/* Mobile Adjustments (Optional but recommended) */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: block; /* Show normally on mobile or use JS to toggle */
        padding-left: 20px;
    }
}
/* Styling for the links in the sidebar */
.sticky-nav li a {
    display: block;
    padding: 8px 15px;
    color: #64748b; /* Slate gray for inactive */
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

/* The Active State - triggered by the JavaScript */
.sticky-nav li a.active {
    color: #003366; /* Your brand Navy */
    font-weight: 700;
    border-left: 3px solid #3b82f6; /* Blue accent border */
    background-color: #f1f5f9; /* Light highlight background */
}

/* Hover state for better UX */
.sticky-nav li a:hover {
    color: #003366;
    background-color: #f8fafc;
}
    /* Unique Legal Document Styling */
    .agreement-body {
        background: #f4f7f6;
        padding: 50px 0;
    }
    .legal-paper {
        background: #fff;
        padding: 60px 80px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        border-radius: 4px;
        position: relative;
        overflow: hidden;
        border-top: 8px solid #003366;
    }
    /* Subtle Watermark */
    .legal-paper::before {
        content: "OFFICIAL AGREEMENT";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
        font-size: 5rem;
        font-weight: 900;
        color: rgba(0,0,0,0.02);
        white-space: nowrap;
        pointer-events: none;
    }
    .legal-header {
        border-bottom: 2px solid #eee;
        margin-bottom: 40px;
        padding-bottom: 20px;
    }
    .clause-number {
        color: #003366;
        font-weight: 700;
        margin-right: 10px;
    }
    .legal-section {
        margin-bottom: 35px;
    }
    .legal-section h3 {
        font-size: 1.25rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #333;
        margin-bottom: 15px;
    }
    .acceptance-box {
        background: #f8f9fa;
        border: 2px dashed #003366;
        padding: 30px;
        margin-top: 50px;
        border-radius: 8px;
    }
    /* Responsive adjustment */
    @media (max-width: 768px) {
        .legal-paper { padding: 30px 20px; }
    }
    /* Add space so notifications aren't hidden by the fixed header */
.status-container-padding {
    margin-top: 100px; /* Adjust this value based on your header height */
    margin-bottom: 30px;
}

/* Optional: Smooth transition for the card appearance */
.card.shadow-sm {
    border-radius: 15px;
    overflow: hidden;
}
/* Mobile Toggle Styling */
.mobile-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex; /* Show on mobile */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 250px;
        height: 100vh;
        background-color: #2e5a83;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transition: 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0; /* Slide in when active class is added */
    }

    .nav-list {
        flex-direction: column;
        padding: 80px 20px; /* Space for the logo/top area */
        gap: 20px;
    }

    /* Optional: Turn bars into an X when menu is open */
    .mobile-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 768px) {
    /* 1. Hide the dropdown content by default on mobile */
    .nav-menu .dropdown-content, 
    .nav-menu .dropdown-menu {
        display: none;
        position: static; /* Let it push content down instead of floating */
        width: 100%;
        background: #ffffff; /* Slightly darker shade for contrast */
        padding-left: 15px;
    }

    /* 2. This class will be added by JS to show the menu */
    .nav-menu .dropdown.show-submenu > .dropdown-content,
    .nav-menu .dropdown.show-submenu > .dropdown-menu {
        display: block !important;
    }
    
    /* 3. Style the parent link to show it's clickable */
    .nav-menu .dropdown > a::after {
        content: ' ▼';
        font-size: 0.8rem;
    }
}
.j-logo-wrapper {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 2px;
}

.j-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Keeps logo proportions perfect without distorting */
}