/* =========================================================
   SADHIKA RESEARCH & PUBLICATIONS
   HOME PAGE
========================================================= */

.home-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.home-hero {
    position: relative;

    min-height: 405px;

    background-image:
        url("../images/hero/home-hero.jpg");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7, 31, 57, 0.98) 0%,
            rgba(7, 31, 57, 0.90) 38%,
            rgba(7, 31, 57, 0.45) 65%,
            rgba(7, 31, 57, 0.08) 100%
        );
}

.hero-container {
    position: relative;
    z-index: 2;

    padding-left: 0;
    padding-right: 120px;   

    left: -100px;
}

.hero-content {
    max-width: 900px;

    color: #ffffff;

    padding: 48px 0;
}

.hero-small-text {
    margin-bottom: 22px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 11px;

    letter-spacing: 0.8px;

    color: #e3c06b;

    text-align: left;
}

.hero-small-text span {
    margin: 0 8px;

    color: #ffffff;
}

.hero-content h1 {
    margin: 0 0 2px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(38px, 3.2vw, 48px);

    font-weight: 600;

    line-height: 1.1;

    color: #ffffff;

    text-align: left;

    white-space: nowrap;
}

.hero-content h2 {
    margin: 0 0 14px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(23px, 2.4vw, 30px);

    font-weight: 400;

    line-height: 1.3;

    color: #ffffff;

    text-align: left;
}

.hero-content p {
    max-width: 570px;

    margin: 0 0 22px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 17px;

    line-height: 1.55;

    color: #ffffff;

    text-align: justify;
}

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 16px;
}

.hero-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 43px;

    padding: 0 28px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 15px;

    text-decoration: none;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn-primary {
    background: #e7b94d;

    color: #102a43;

    border: 1px solid #e7b94d;
}

.hero-btn-primary:hover {
    background: #ffffff;

    border-color: #ffffff;

    color: #102a43;
}

.hero-btn-primary span {
    margin-left: 12px;

    font-size: 19px;
}

.hero-btn-secondary {
    color: #ffffff;

    background: transparent;

    border: 1px solid #e7b94d;
}

.hero-btn-secondary:hover {
    background: #e7b94d;

    color: #102a43;
}


/* =========================================================
   SUBJECT CATEGORIES
========================================================= */

.subject-section {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;
}

.subject-container {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(6, 1fr);
}

.subject-item {
    min-height: 115px;

    padding: 16px 10px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    border-right: 1px solid #eeeeee;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.subject-item:last-child {
    border-right: none;
}

.subject-item:hover {
    background: #fafafa;

    transform: translateY(-3px);
}

.subject-icon {
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 5px;

    font-size: 31px;

    color: #102a43;
}

.subject-icon.gold-icon {
    color: #b18325;
}

.subject-icon.brown-icon {
    color: #74552d;
}

.subject-item h3 {
    margin: 0 0 2px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 16px;

    font-weight: 600;

    color: #102a43;
}

.subject-item p {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 13px;

    line-height: 1.4;

    color: #102a43;

    text-align: center;
}


/* =========================================================
   FEATURED PUBLICATIONS
========================================================= */

.featured-section {
    width: 100%;

    padding: 34px 0 34px;

    background: #ffffff;

    overflow: hidden;
}

.section-heading-row {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin-bottom: 20px;

}

.section-title {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 30px;

    font-weight: 600;

    line-height: 1.2;

    color: #102a43;

    text-align: left;
}

.section-line {
    display: block;

    width: 31px;

    height: 3px;

    margin-top: 8px;

    background: #b68a2d;
}

.view-all-link {
    margin-top: 10px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 13px;

    color: #102a43;

    text-decoration: none;

    border-bottom: 1px solid transparent;

    transition:
        color 0.3s ease,
        border-color 0.3s ease;
}

.view-all-link:hover {
    color: #b68a2d;

    border-color: #b68a2d;
}

.view-all-link span {
    margin-left: 5px;

    font-size: 17px;
}


/* =========================================================
   BOOK SLIDER
========================================================= */

.books-slider-wrapper {
    position: relative;

    display: flex;

    align-items: center;

    width: 100%;
}

.books-slider {
    width: 100%;

    overflow: hidden;

    padding: 3px 36px 8px;
}

.books-track {
    display: flex;

    gap: 38px;

    width: max-content;

    transition: transform 0.55s ease;
}

.book-card {
    width: 155px;

    flex: 0 0 155px;

    cursor: pointer;

    text-align: left;

    transition:
        transform 0.35s ease;
}

.book-card:hover {
    transform: translateY(-7px);
}

.book-image {
    width: 155px;

    height: 195px;

    overflow: hidden;

    background: #f2f2f2;

    border: 1px solid #dedede;
}

.book-image img {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.04);
}

.book-card h3 {
    margin: 7px 0 1px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 13px;

    font-weight: 500;

    line-height: 1.25;

    color: #102a43;

    text-align: left;
}

.book-card p {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 12px;

    line-height: 1.25;

    color: #102a43;

    text-align: left;
}

.book-card span {
    display: block;

    margin-top: 5px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 11px;

    color: #102a43;
}


/* =========================================================
   SLIDER BUTTONS
========================================================= */

.book-slider-button {
    position: absolute;

    top: 43%;

    transform: translateY(-50%);

    width: 35px;

    height: 35px;

    border: none;

    border-radius: 50%;

    background: #f5f5f5;

    color: #102a43;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 27px;

    line-height: 1;

    cursor: pointer;

    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.book-slider-button:hover {
    background: #102a43;

    color: #ffffff;
}

.book-prev {
    left: 0;
}

.book-next {
    right: 0;
}


/* =========================================================
   INFORMATION SECTION
========================================================= */

.information-section {
    width: 100%;

    padding: 14px 0 18px;

    background: #f7f6f2;
}

.information-grid {
    display: grid;

    grid-template-columns:
        1.05fr
        1.05fr
        1.05fr
        0.85fr;

    gap: 12px;
}

.information-card {
    position: relative;

    min-height: 190px;

    background: #ffffff;

    overflow: hidden;

    display: flex;

    transition:
        transform 0.35s ease;
}

.information-card:hover {
    transform: translateY(-3px);
}

.information-image {
    position: absolute;

    inset: 0;

    z-index: 0;
}

.information-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.97) 0%,
            rgba(255,255,255,0.92) 45%,
            rgba(255,255,255,0.25) 100%
        );
}

.information-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.information-content {
    position: relative;

    z-index: 2;

    width: 100%;

    padding: 15px 15px;

    text-align: left;
}

.information-content h2 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 22px;

    font-weight: 600;

    line-height: 1.2;

    color: #102a43;

    text-align: left;
}

.card-line {
    display: block;

    width: 28px;

    height: 3px;

    margin: 7px 0 8px;

    background: #b68a2d;
}

.information-content p {
    width: 62%;

    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 12px;

    line-height: 1.45;

    color: #102a43;

    text-align: justify;
}

.card-button {
    display: inline-flex;

    align-items: center;

    margin-top: 10px;

    padding: 7px 12px;

    background: #102a43;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 12px;

    text-decoration: none;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.card-button:hover {
    background: #b68a2d;

    color: #102a43;

    transform: translateX(3px);
}

.card-button span {
    margin-left: 8px;

    font-size: 15px;
}


/* =========================================================
   WHY PUBLISH
========================================================= */

.why-publish-card {
    background: #ffffff;

    min-height: 190px;
}

.why-publish-card .information-content {
    padding: 15px 16px;
}

.benefits-list {
    list-style: none;

    margin: 7px 0 0;

    padding: 0;
}

.benefits-list li {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 5px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 12px;

    line-height: 1.3;

    color: #102a43;

    text-align: left;
}

.benefits-list li i {
    color: #b68a2d;

    font-size: 14px;

    flex-shrink: 0;
}


/* =========================================================
   MOTION
========================================================= */

.information-card {
    opacity: 0;

    transform: translateY(22px);

    animation: homeCardReveal 0.8s ease forwards;
}

.information-card:nth-child(1) {
    animation-delay: 0.10s;
}

.information-card:nth-child(2) {
    animation-delay: 0.20s;
}

.information-card:nth-child(3) {
    animation-delay: 0.30s;
}

.information-card:nth-child(4) {
    animation-delay: 0.40s;
}

@keyframes homeCardReveal {

    from {
        opacity: 0;

        transform: translateY(22px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .hero-content {
        max-width: 610px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content h2 {
        font-size: 25px;
    }

    .subject-item {
        min-height: 105px;
    }

    .books-track {
        gap: 25px;
    }

    .book-card,
    .book-image {
        width: 145px;
    }

    .book-image {
        height: 185px;
    }

    .information-grid {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   TABLET SMALL
========================================================= */

@media (max-width: 800px) {

    .home-hero {
        min-height: 430px;
    }

    .hero-content {
        max-width: 100%;

        padding: 45px 0;
    }

    .hero-content h1 {
        font-size: 39px;
    }

    .subject-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .subject-item:nth-child(3) {
        border-right: none;
    }

    .subject-item:nth-child(4),
    .subject-item:nth-child(5),
    .subject-item:nth-child(6) {
        border-top: 1px solid #eeeeee;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .featured-section {
        padding: 24px 0 30px;
    }

    .information-section {
        padding: 10px 0 15px;
    }

    .home-container {
        width: 92%;
    }

    .hero-container {
        left: 0;
        padding-left: 10px;
        padding-right: 0;
        width: 100%;
    }

    .home-hero {
        min-height: 500px;
        background-position: 62% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(7,31,57,0.97) 0%,
                rgba(7,31,57,0.85) 70%,
                rgba(7,31,57,0.65) 100%
            );
    }

    .hero-content {
        padding: 42px 0;
    }

    .hero-small-text {
        font-size: 9px;
        line-height: 1.7;
    }

    .hero-small-text span {
        margin: 0 4px;
    }

    .hero-content h1 {
        font-size: 25px;
    }

    .hero-content h2 {
        font-size: 18px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero-btn {
        width: auto;
        min-height: 42px;
        padding: 0 20px;
    }

    .subject-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .subject-item {
        min-height: 105px;

        border-right: 1px solid #eeeeee;
    }

    .subject-item:nth-child(even) {
        border-right: none;
    }

    .subject-item:nth-child(3),
    .subject-item:nth-child(4) {
        border-top: 1px solid #eeeeee;
    }

    .subject-item:nth-child(5),
    .subject-item:nth-child(6) {
        border-top: 1px solid #eeeeee;
    }

    .section-heading-row {
        align-items: flex-end;
    }

    .section-title {
        font-size: 25px;
    }

    .view-all-link {
        font-size: 11px;
    }

    .books-slider {
        padding-left: 25px;
        padding-right: 25px;
    }

    .books-track {
        gap: 20px;
    }

    .book-card,
    .book-image {
        width: 140px;
    }

    .book-image {
        height: 180px;
    }

    .book-slider-button {
        width: 31px;

        height: 31px;

        font-size: 23px;
    }

    .information-grid {
        grid-template-columns: 1fr;
    }

    .information-card {
        min-height: 205px;
    }

    .information-content p {
        width: 65%;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .hero-content h1 {
        font-size: 29px;
    }

    .hero-content h2 {
        font-size: 19px;
    }

    .subject-item h3 {
        font-size: 14px;
    }

    .subject-item p {
        font-size: 11px;
    }

    .information-content p {
        width: 72%;
    }

}