/* =========================================================
   SADHIKA RESEARCH & PUBLICATIONS
   AUTHORS GUIDELINES PAGE
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
    --authors-primary: #123b63;
    --authors-secondary: #1c527f;
    --authors-gold: #c69a3a;
    --authors-light: #f6f8fa;
    --authors-border: #dfe5ea;
    --authors-text: #333333;
    --authors-muted: #6d7680;
    --authors-white: #ffffff;
}


/* =========================================================
   AUTHORS GUIDELINES HERO
   MATCH NEWS & EVENTS DESIGN
========================================================= */

.authors-hero {
    position: relative;
    width: 100%;
    min-height: 245px;
    background-image: url("../images/hero/authors-banner.jpg");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.authors-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(4, 34, 61, 0.96) 0%,
        rgba(4, 34, 61, 0.88) 35%,
        rgba(4, 34, 61, 0.48) 62%,
        rgba(4, 34, 61, 0.08) 100%
    );
    pointer-events: none;
}

.authors-hero-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1380px;
    min-height: 245px;
    margin: 0 auto;
}

.authors-hero-content {
    position: relative;
    z-index: 3;
    width: 690px;
    max-width: 55%;
    padding-top: 25px;
    color: #ffffff;
}

.authors-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
}

.authors-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.authors-breadcrumb span {
    color: #ffffff;
}

.authors-breadcrumb span:last-child {
    color: #f3c343;
}

.authors-hero-content h1 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: clamp(46px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 700;
}

.authors-hero-content p {
    margin: 0;
    max-width: 650px;
    color: #ffffff;
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.3;
    text-align: left;
}

.authors-hero-services {
    position: absolute;
    left: 51%;
    top: 50%;
    transform: translateY(-50%);
    width: 390px;
    padding-left: 35px;
    border-left: 2px solid #f3c343;
}

.hero-service-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 16px;
}

.hero-service-item:last-child {
    margin-bottom: 0;
}

.hero-service-icon {
    width: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.hero-service-item > span:last-child {
    line-height: 1.3;
}

/* TABLET */

@media (max-width: 1100px) {
    .authors-hero-content {
        max-width: 52%;
    }

    .authors-hero-services {
        left: 55%;
        width: 40%;
        padding-left: 24px;
    }
}

/* SMALL TABLET */

@media (max-width: 850px) {
    .authors-hero {
        min-height: auto;
    }

    .authors-hero-container {
        min-height: auto;
        padding: 28px 0 32px;
    }

    .authors-hero-content {
        width: 100%;
        max-width: 100%;
        padding-top: 0;
    }

    .authors-hero-content h1 {
        font-size: clamp(36px, 7vw, 48px);
    }

    .authors-hero-content p {
        font-size: 19px;
    }

    .authors-hero-services {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: 24px;
        padding: 0 0 0 18px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .authors-hero-container {
        width: 92%;
        padding: 24px 0 28px;
    }

    .authors-breadcrumb {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .authors-hero-content h1 {
        font-size: 34px;
    }

    .authors-hero-content p {
        font-size: 16px;
        line-height: 1.55;
    }

    .authors-hero-services {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 14px;
        margin-top: 20px;
        padding-left: 14px;
    }

    .hero-service-item {
        gap: 9px;
        margin: 0;
        font-size: 13px;
    }

    .hero-service-icon {
        width: 22px;
        min-width: 22px;
        font-size: 17px;
    }
}

/* =========================================================
   MAIN
========================================================= */

.authors-main {
    width: 100%;
    background: #ffffff;
    padding: 25px 0 45px;
}


.authors-layout {
    width: min(1250px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 245px;
    gap: 28px;
    align-items: start;
}


/* =========================================================
   LEFT GUIDELINE NAVIGATION
========================================================= */

.authors-sidebar {
    position: relative;
}


.guidelines-nav-box {
    background: #ffffff;
    border: 1px solid var(--authors-border);
    position: sticky;
    top: 110px;
}


.guidelines-nav-box h2 {
    margin: 0;
    padding: 18px 18px;
    background: var(--authors-primary);
    color: #ffffff;
    font-size: 18px;
    line-height: 1.3;
}


.guidelines-nav {
    display: flex;
    flex-direction: column;
}


.guideline-nav-link {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 15px;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 11px 12px;
    color: var(--authors-text);
    text-decoration: none;
    border-bottom: 1px solid #edf0f2;
    background: #ffffff;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        padding-left 0.25s ease;
}


.guideline-nav-link:last-child {
    border-bottom: none;
}


.guideline-nav-link:hover {
    background: #f4f7f9;
    color: var(--authors-primary);
    padding-left: 16px;
}


.guideline-nav-link.active {
    color: #ffffff;
    background: var(--authors-primary);
    padding-left: 16px;
}


.guideline-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
}


.guideline-nav-text {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}


.department-arrow {
    font-size: 20px;
    line-height: 1;
    text-align: center;
}


/* =========================================================
   GUIDELINES CONTENT
========================================================= */

.guidelines-content {
    min-width: 0;
}


.guideline-section {
    position: relative;
    margin-bottom: 32px;
    padding: 32px 34px;
    background: #ffffff;
    border: 1px solid var(--authors-border);
    scroll-margin-top: 110px;
}


.guideline-section:last-child {
    margin-bottom: 0;
}


.guideline-section h2 {
    position: relative;
    margin: 0 0 28px;
    padding-bottom: 15px;
    color: var(--authors-primary);
    font-size: 27px;
    line-height: 1.3;
    font-weight: 700;
    border-bottom: 1px solid var(--authors-border);
}


.guideline-section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 65px;
    height: 3px;
    background: var(--authors-gold);
}


.guideline-section-body {
    color: var(--authors-text);
}


.guideline-section-body h3 {
    margin: 25px 0 8px;
    color: var(--authors-secondary);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
}


.guideline-section-body h3:first-child {
    margin-top: 0;
}


.guideline-section-body p {
    margin: 0 0 18px;
    color: #444444;
    font-size: 15px;
    line-height: 1.85;
    text-align: justify;
}


.guideline-section-body p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SECTION REVEAL
========================================================= */

.guideline-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}


.guideline-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   RIGHT SIDEBAR
========================================================= */

.authors-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}


.author-sidebar-box {
    padding: 25px;
    background: #ffffff;
    border: 1px solid var(--authors-border);
}


.author-sidebar-box h2 {
    margin: 0 0 14px;
    color: var(--authors-primary);
    font-size: 20px;
    line-height: 1.35;
}


.author-sidebar-box p {
    margin: 0 0 20px;
    color: #555555;
    font-size: 14px;
    line-height: 1.75;
}


.gold-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 15px;
    background: var(--authors-gold);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}


.gold-button:hover {
    background: #a9822e;
    color: #ffffff;
    transform: translateY(-2px);
}


/* =========================================================
   RESOURCES
========================================================= */

.resource-list {
    list-style: none;
    margin: 0;
    padding: 0;
}


.resource-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    color: #4b4b4b;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px solid #edf0f2;
}


.resource-list li:last-child {
    border-bottom: none;
}


.resource-list li span {
    width: 20px;
    min-width: 20px;
    color: var(--authors-gold);
    font-weight: 700;
}


/* =========================================================
   FAQ
========================================================= */

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.faq-item {
    padding: 20px;
    border: 1px solid #e2e7eb;
    background: #fafbfc;
    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}


.faq-item:hover {
    border-color: #c8d3dc;
    background: #ffffff;
}


.faq-item h3 {
    margin: 0 0 10px !important;
    color: var(--authors-primary) !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}


.faq-item p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
}


.faq-item strong {
    color: var(--authors-secondary);
}


/* =========================================================
   TESTIMONIAL
========================================================= */

.testimonial-slider {
    position: relative;
    min-height: 190px;
}


.testimonial-item {
    display: none;
    animation: testimonialFade 0.5s ease;
}


.testimonial-item.active {
    display: block;
}


.testimonial-item p {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.8;
    font-style: italic;
    color: #555555;
}


.testimonial-item strong {
    display: block;
    color: var(--authors-primary);
    font-size: 14px;
}


.testimonial-item small {
    display: block;
    margin-top: 4px;
    color: #777777;
    font-size: 12px;
}


.testimonial-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
}


.testimonial-dot {
    width: 7px;
    height: 7px;
    display: block;
    background: #cbd2d8;
    cursor: pointer;
    transition: all 0.25s ease;
}


.testimonial-dot.active {
    width: 22px;
    background: var(--authors-gold);
}


@keyframes testimonialFade {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1100px) {

    .authors-layout {
        grid-template-columns: 215px minmax(0, 1fr);
    }


    .authors-right-sidebar {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }


    .authors-hero-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }


    .authors-hero-services {
        max-width: 800px;
    }

}


/* =========================================================
   RESPONSIVE - TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 850px) {

    .authors-layout {
        grid-template-columns: 1fr;
    }


    .authors-sidebar {
        width: 100%;
    }


    .guidelines-nav-box {
        position: relative;
        top: auto;
    }


    .guidelines-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }


    .guideline-nav-link {
        border-right: 1px solid #edf0f2;
    }


    .authors-right-sidebar {
        grid-column: auto;
        display: grid;
        grid-template-columns: 1fr;
    }


    .guideline-section {
        padding: 28px;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 600px) {

    .authors-hero {
        min-height: auto;
    }


    .authors-hero-container {
        width: 92%;
        padding: 50px 0;
        gap: 30px;
    }


    .authors-hero h1 {
        font-size: 34px;
    }


    .authors-hero-content p {
        font-size: 15px;
        line-height: 1.7;
    }


    .authors-breadcrumb {
        font-size: 12px;
    }


    .authors-hero-services {
        grid-template-columns: 1fr;
    }


    .hero-service-item {
        min-height: 60px;
    }


    .authors-main {
        padding: 40px 0 55px;
    }


    .authors-layout {
        width: 92%;
        gap: 20px;
    }


    .guidelines-nav {
        display: flex;
    }


    .guideline-nav-link {
        min-height: 52px;
        border-right: none;
    }


    .guideline-section {
        padding: 23px 20px;
        margin-bottom: 20px;
        scroll-margin-top: 80px;
    }


    .guideline-section h2 {
        font-size: 23px;
        margin-bottom: 22px;
    }


    .guideline-section-body h3 {
        font-size: 17px;
    }


    .guideline-section-body p {
        font-size: 14px;
        line-height: 1.8;
        text-align: left;
    }


    .faq-item {
        padding: 16px;
    }


    .faq-item h3 {
        font-size: 15px !important;
    }


    .faq-item p {
        font-size: 13.5px !important;
    }


    .authors-right-sidebar {
        gap: 18px;
    }


    .author-sidebar-box {
        padding: 20px;
    }

}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .authors-hero h1 {
        font-size: 30px;
    }


    .guideline-section {
        padding: 20px 16px;
    }


    .guideline-section h2 {
        font-size: 21px;
    }


    .guideline-nav-text {
        font-size: 12px;
    }

}


/* =========================================================
   FINAL OVERRIDE
   AUTHOR GUIDELINES = BOOK CATEGORIES STYLE
   ========================================================= */


/* MAIN BOX */

.authors-main .authors-sidebar .guidelines-nav-box {
    position: sticky !important;
    top: 110px !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;

    border: 1px solid #d9d9d9 !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    overflow: hidden !important;
}


/* =========================================================
   HEADING
   ========================================================= */

.authors-main .authors-sidebar .guidelines-nav-box h2 {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;

    padding: 16px 16px !important;

    background: #ffffff !important;

    color: #173b5f !important;

    border: 0 !important;

    border-radius: 0 !important;

    font-family: Georgia, "Times New Roman", serif !important;

    font-size: 23px !important;

    font-weight: 700 !important;

    line-height: 1.2 !important;

    text-align: left !important;

    box-sizing: border-box !important;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.authors-main .authors-sidebar .guidelines-nav {
    display: flex !important;

    flex-direction: column !important;

    width: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

    background: #ffffff !important;

    border: 0 !important;
}


/* =========================================================
   EACH TAB
   ========================================================= */

.authors-main .authors-sidebar .guideline-nav-link {
    position: relative !important;

    display: grid !important;

    grid-template-columns: 14px minmax(0, 1fr) 16px !important;

    align-items: center !important;

    column-gap: 9px !important;

    width: 100% !important;

    min-height: 43px !important;

    margin: 0 !important;

    padding: 9px 12px !important;

    box-sizing: border-box !important;

    background: #ffffff !important;

    color: #123b63 !important;

    text-decoration: none !important;

    border: 0 !important;

    border-top: 1px solid #dddddd !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    transform: none !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease !important;
}


/* =========================================================
   REMOVE OLD LEFT BORDER / BEFORE EFFECT
   ========================================================= */

.authors-main .authors-sidebar .guideline-nav-link::before,
.authors-main .authors-sidebar .guideline-nav-link::after {
    display: none !important;

    content: none !important;
}


/* =========================================================
   ICON
   ========================================================= */

.authors-main .authors-sidebar .guideline-nav-icon {
    width: 12px !important;

    height: 12px !important;

    min-width: 12px !important;

    margin: 0 !important;

    padding: 0 !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    color: transparent !important;

    font-size: 0 !important;

    line-height: 1 !important;
}


/* Small square */

.authors-main .authors-sidebar .guideline-nav-icon::before {
    content: "" !important;

    display: block !important;

    width: 8px !important;

    height: 8px !important;

    border: 1px solid #d19a20 !important;

    background: #ffffff !important;

    box-sizing: border-box !important;
}


/* =========================================================
   TAB TEXT
   ========================================================= */

.authors-main .authors-sidebar .guideline-nav-text {
    display: block !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

    color: #123b63 !important;

    font-family: Georgia, "Times New Roman", serif !important;

    font-size: 15px !important;

    font-weight: 400 !important;

    line-height: 1.3 !important;

    text-align: left !important;

    white-space: normal !important;
}


/* =========================================================
   ARROW
   ========================================================= */

.authors-main .authors-sidebar .guideline-nav-link .department-arrow {
    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 16px !important;

    height: 20px !important;

    margin: 0 !important;

    padding: 0 !important;

    color: #123b63 !important;

    font-size: 19px !important;

    font-weight: 400 !important;

    line-height: 1 !important;

    text-align: center !important;
}


/* =========================================================
   HOVER
   ========================================================= */

.authors-main .authors-sidebar .guideline-nav-link:hover {
    background: #fdf7e5 !important;

    color: #123b63 !important;

    padding-left: 12px !important;

    transform: none !important;
}


.authors-main .authors-sidebar .guideline-nav-link:hover
.guideline-nav-text {
    color: #123b63 !important;
}


.authors-main .authors-sidebar .guideline-nav-link:hover
.department-arrow {
    color: #123b63 !important;
}


/* =========================================================
   ACTIVE
   SAME AS BOOK CATEGORIES HIGHLIGHT
   ========================================================= */

.authors-main .authors-sidebar .guideline-nav-link.active {
    background: #f5d985 !important;

    color: #123b63 !important;

    padding-left: 12px !important;

    border-top: 1px solid #e3cf8d !important;

    transform: none !important;
}


.authors-main .authors-sidebar .guideline-nav-link.active
.guideline-nav-text {
    color: #123b63 !important;

    font-weight: 700 !important;
}


.authors-main .authors-sidebar .guideline-nav-link.active
.department-arrow {
    color: #123b63 !important;

    font-weight: 700 !important;
}


.authors-main .authors-sidebar .guideline-nav-link.active
.guideline-nav-icon::before {
    background: #d19a20 !important;

    border-color: #d19a20 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 850px) {

    .authors-main .authors-sidebar .guidelines-nav-box {
        position: relative !important;

        top: auto !important;
    }

}


@media (max-width: 600px) {

    .authors-main .authors-sidebar .guidelines-nav-box h2 {
        padding: 15px 14px !important;

        font-size: 21px !important;
    }


    .authors-main .authors-sidebar .guideline-nav-link {
        min-height: 45px !important;

        padding: 9px 12px !important;
    }


    .authors-main .authors-sidebar .guideline-nav-text {
        font-size: 14px !important;
    }

}

/* =========================================================
   AUTHOR GUIDELINES SIDEBAR
   EXACT BOOK CATEGORIES STYLE
   FINAL CLEAN VERSION
========================================================= */


/* =========================================================
   MAIN PAGE GRID
   LEFT SIDEBAR = BOOK CATEGORIES WIDTH
========================================================= */

.authors-layout {
    width: min(1250px, 92%) !important;
    margin: 0 auto !important;

    display: grid !important;

    grid-template-columns:
        300px
        minmax(0, 1fr)
        245px !important;

    gap: 28px !important;

    align-items: start !important;
}


/* =========================================================
   LEFT SIDEBAR
========================================================= */

.authors-sidebar {
    width: 300px !important;
    min-width: 300px !important;
    position: relative !important;
}


/* =========================================================
   OUTER BLACK FRAME
   SAME VISUAL STYLE AS BOOK CATEGORIES
========================================================= */

.ag-sidebar {

    width: 300px !important;

    box-sizing: border-box !important;

    background: #ffffff !important;

    /*border: 4px solid #111111 !important; */

    border-radius: 0 !important;

    box-shadow: none !important;

    overflow: hidden !important;

    position: sticky !important;

    top: 110px !important;

    padding: 16px !important;
}


/* =========================================================
   TITLE
========================================================= */

.ag-sidebar-title {

    width: 100% !important;

    box-sizing: border-box !important;

    margin: 0 !important;

    padding: 14px 16px !important;

    background: #ffffff !important;

    color: #173b5f !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    font-size: 24px !important;

    font-weight: 700 !important;

    line-height: 1.25 !important;

    text-align: left !important;

    border: 1px solid #dcdcdc !important;

    border-bottom: 0 !important;
}


/* =========================================================
   NAVIGATION CONTAINER
========================================================= */

.ag-sidebar-nav {

    width: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

    display: flex !important;

    flex-direction: column !important;

    background: #ffffff !important;

    border: 1px solid #dcdcdc !important;

    border-top: 0 !important;

    box-sizing: border-box !important;
}


/* =========================================================
   EACH TAB
========================================================= */

.ag-sidebar-link {

    width: 100% !important;

    min-height: 39px !important;

    box-sizing: border-box !important;

    display: grid !important;

    grid-template-columns:
        12px
        minmax(0, 1fr)
        16px !important;

    align-items: center !important;

    column-gap: 9px !important;

    margin: 0 !important;

    padding: 8px 10px !important;

    background: #ffffff !important;

    color: #123b63 !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    font-size: 15px !important;

    font-weight: 400 !important;

    line-height: 1.3 !important;

    text-decoration: none !important;

    border: 0 !important;

    border-top: 1px solid #dddddd !important;

    border-radius: 0 !important;

    outline: none !important;

    box-shadow: none !important;

    transform: none !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease !important;
}


/* First tab should not have an extra line */

.ag-sidebar-nav .ag-sidebar-link:first-child {
    border-top: 0 !important;
}


/* =========================================================
   SMALL SQUARE ICON
========================================================= */

.ag-sidebar-icon {

    width: 9px !important;

    height: 9px !important;

    min-width: 9px !important;

    display: block !important;

    box-sizing: border-box !important;

    margin: 0 !important;

    padding: 0 !important;

    background: #ffffff !important;

    border: 1px solid #d19a20 !important;
}


/* =========================================================
   TAB TEXT
========================================================= */

.ag-sidebar-text {

    display: block !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

    color: #123b63 !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    font-size: 15px !important;

    font-weight: 400 !important;

    line-height: 1.35 !important;

    text-align: left !important;

    white-space: normal !important;

    text-decoration: none !important;
}


/* =========================================================
   RIGHT ARROW
========================================================= */

.ag-sidebar-arrow {

    width: 16px !important;

    height: 20px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    margin: 0 !important;

    padding: 0 !important;

    color: #123b63 !important;

    font-family: Arial, sans-serif !important;

    font-size: 19px !important;

    font-weight: 400 !important;

    line-height: 1 !important;

    text-align: center !important;
}


/* =========================================================
   REMOVE ALL OLD LINK EFFECTS
========================================================= */

.ag-sidebar-link,
.ag-sidebar-link:visited,
.ag-sidebar-link:focus,
.ag-sidebar-link:active {

    text-decoration: none !important;

    outline: none !important;
}


/* =========================================================
   HOVER
========================================================= */

.ag-sidebar-link:hover {

    background: #fdf7e5 !important;

    color: #123b63 !important;

    padding-left: 10px !important;

    text-decoration: none !important;

    transform: none !important;
}


.ag-sidebar-link:hover .ag-sidebar-text {

    color: #123b63 !important;
}


.ag-sidebar-link:hover .ag-sidebar-arrow {

    color: #123b63 !important;
}


/* =========================================================
   ACTIVE TAB
   SAME GOLD AS BOOK CATEGORIES
========================================================= */

.ag-sidebar-link.active {

    background: #f5d985 !important;

    color: #123b63 !important;

    padding-left: 10px !important;

    font-weight: 700 !important;

    text-decoration: none !important;

    transform: none !important;

    border-top-color: #e3cf8d !important;
}


.ag-sidebar-link.active .ag-sidebar-text {

    color: #123b63 !important;

    font-weight: 700 !important;
}


.ag-sidebar-link.active .ag-sidebar-arrow {

    color: #123b63 !important;

    font-weight: 700 !important;
}


.ag-sidebar-link.active .ag-sidebar-icon {

    background: #d19a20 !important;

    border-color: #d19a20 !important;
}


/* =========================================================
   CONTENT
   KEEP ALL CONTENT JUSTIFIED
========================================================= */

.guideline-section-body,
.guideline-section-body p,
.guideline-section-body li {

    text-align: justify !important;
}


.guideline-section-body p {

    text-align: justify !important;
}


/* FAQ CONTENT */

.faq-container,
.faq-item,
.faq-item p {

    text-align: justify !important;
}


/* =========================================================
   HEADINGS STAY LEFT
========================================================= */

.guideline-section h2,
.guideline-section-body h3,
.faq-item h3 {

    text-align: left !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .authors-layout {

        grid-template-columns:
            280px
            minmax(0, 1fr) !important;

        gap: 24px !important;
    }


    .authors-sidebar {

        width: 280px !important;

        min-width: 280px !important;
    }


    .ag-sidebar {

        width: 280px !important;
    }


    .authors-right-sidebar {

        grid-column: 1 / -1 !important;
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 850px) {

    .authors-layout {

        width: 92% !important;

        grid-template-columns: 1fr !important;

        gap: 20px !important;
    }


    .authors-sidebar {

        width: 100% !important;

        min-width: 0 !important;
    }


    .ag-sidebar {

        width: 100% !important;

        position: relative !important;

        top: auto !important;
    }


    .authors-right-sidebar {

        grid-column: auto !important;

        display: grid !important;

        grid-template-columns: 1fr !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .ag-sidebar {

        padding: 10px !important;

        border-width: 3px !important;
    }


    .ag-sidebar-title {

        padding: 14px !important;

        font-size: 21px !important;
    }


    .ag-sidebar-link {

        min-height: 44px !important;

        padding: 9px 10px !important;

        grid-template-columns:
            11px
            minmax(0, 1fr)
            15px !important;

        column-gap: 8px !important;
    }


    .ag-sidebar-text {

        font-size: 14px !important;

        line-height: 1.35 !important;
    }


    .ag-sidebar-arrow {

        font-size: 18px !important;
    }


    .guideline-section-body p,
    .faq-item p {

        text-align: justify !important;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .ag-sidebar {

        padding: 8px !important;
    }


    .ag-sidebar-title {

        font-size: 20px !important;
    }


    .ag-sidebar-text {

        font-size: 13.5px !important;
    }

}

/* =========================================================
   FINAL FIX - GUIDELINE CONTENT MUST REMAIN VISIBLE
========================================================= */

.guideline-section.guideline-reveal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* =========================================================
   SIDEBAR WIDTH - BOOK CATEGORIES STYLE
========================================================= */

.authors-layout {
    grid-template-columns: 300px minmax(0, 1fr) 235px !important;
}

.authors-sidebar {
    width: 300px !important;
}

.ag-sidebar-title {
    white-space: nowrap !important;
    font-size: 23px !important;
}



/* =========================================================
   FINAL MOBILE RESPONSIVE FIX
   AUTHORS GUIDELINES PAGE
   Keep existing desktop design unchanged
========================================================= */

/* Prevent layout overflow */
.authors-main,
.authors-layout,
.authors-sidebar,
.guidelines-content,
.authors-right-sidebar,
.guideline-section,
.author-sidebar-box {
    box-sizing: border-box;
    min-width: 0;
}

/* Tablet and mobile: stack the page columns */
@media (max-width: 850px) {

    .authors-main {
        width: 100% !important;
        padding: 25px 0 35px !important;
        overflow-x: clip;
    }

    .authors-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 92% !important;
        max-width: 100% !important;
        gap: 22px !important;
        margin: 0 auto !important;
        align-items: start !important;
    }

    /* Left navigation */
    .authors-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        grid-column: 1 / -1 !important;
    }

    .ag-sidebar {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .ag-sidebar-title {
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }

    .ag-sidebar-nav {
        width: 100% !important;
        min-width: 0 !important;
    }

    .ag-sidebar-link {
        grid-template-columns: 12px minmax(0, 1fr) 16px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .ag-sidebar-text {
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    /* Main guideline content */
    .guidelines-content {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .guideline-section {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 24px 20px !important;
        margin-bottom: 20px !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
        scroll-margin-top: 85px;
    }

    .guideline-section h2 {
        max-width: 100% !important;
        font-size: 23px !important;
        line-height: 1.4 !important;
        overflow-wrap: break-word;
    }

    .guideline-section-body {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .guideline-section-body h3 {
        font-size: 17px !important;
        line-height: 1.5 !important;
        overflow-wrap: break-word;
    }

    .guideline-section-body p,
    .guideline-section-body li,
    .faq-item p {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        text-align: justify !important;
    }

    /* Right sidebar and testimonials */
    .authors-right-sidebar {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        gap: 18px !important;
    }

    .author-sidebar-box {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 20px !important;
        overflow-wrap: break-word;
    }

    .author-sidebar-box h2,
    .author-sidebar-box p,
    .testimonial-item,
    .testimonial-item p {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    .testimonial-slider {
        width: 100% !important;
        min-width: 0 !important;
    }

    .resource-list {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Small mobile phones */
@media (max-width: 600px) {

    .authors-layout {
        width: 94% !important;
        gap: 18px !important;
    }

    .ag-sidebar {
        padding: 8px !important;
    }

    .ag-sidebar-title {
        padding: 13px 12px !important;
        font-size: 21px !important;
    }

    .ag-sidebar-link {
        grid-template-columns: 11px minmax(0, 1fr) 15px !important;
        column-gap: 8px !important;
        min-height: 44px !important;
        padding: 9px 8px !important;
    }

    .ag-sidebar-text {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .guideline-section {
        padding: 20px 16px !important;
    }

    .guideline-section h2 {
        font-size: 21px !important;
        margin-bottom: 20px !important;
    }

    .guideline-section-body h3 {
        font-size: 16px !important;
    }

    .guideline-section-body p {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }

    .author-sidebar-box {
        padding: 17px !important;
    }

    .faq-item {
        padding: 15px !important;
        min-width: 0 !important;
    }
}

/* Extra-small phones */
@media (max-width: 380px) {

    .authors-layout {
        width: 94% !important;
    }

    .guideline-section {
        padding: 17px 13px !important;
    }

    .guideline-section h2 {
        font-size: 19px !important;
    }

    .guideline-section-body h3 {
        font-size: 15px !important;
    }

    .guideline-section-body p {
        font-size: 13.5px !important;
    }

    .author-sidebar-box {
        padding: 14px !important;
    }
}



/* =========================================================
   FIXED ABOUT IMAGE
   Image height will not depend on left content length
   ========================================================= */

.about-page .about-story-grid {
    align-items: start !important;
}

.about-page .about-story-image {
    width: 100% !important;
    height: 515px !important;
    min-height: 0 !important;
    align-self: start !important;
    overflow: hidden !important;
}

.about-page .about-image-wrapper {
    width: 100% !important;
    height: 515px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.about-page .about-image-wrapper img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Tablet */
@media (max-width: 1100px) {
    .about-page .about-story-image {
        height: 450px !important;
    }

    .about-page .about-image-wrapper {
        height: 450px !important;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .about-page .about-story-image {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .about-page .about-image-wrapper {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        min-height: 0 !important;
    }

    .about-page .about-image-wrapper img {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        object-fit: cover !important;
    }
}

