/*
Theme Name: CVV International Relations
Description: Custom child theme for CVV International Relations website.
Author: Chinmaya Vishwavidyapeeth
Version: 1.0.0
Template: hello-elementor
Text Domain: cvv-ir
*/

/* =========================================
   GLOBAL STYLES
========================================= */

:root {
    --cvv-blue: #0973BA;
    --cvv-orange: #F5821F;
    --cvv-purple: #32327B;
    --cvv-dark: #222222;
    --cvv-light: #f6f8fa;
}

/* Add custom CSS below */

/* =========================================
   CVV IR - EVENT DETAIL
========================================= */
.event-container{
    max-width:1200px;
    margin:60px auto;
    padding:0 20px;
}

.event-title{
    text-align:center;
    margin-bottom:50px;
    font-size:42px;
    color:#1b3555;
}

.event-wrapper{
    display:flex;
    gap:40px;
    align-items:flex-start;
}

.event-image{
    width:45%;
}

.event-image img{
    width:100%;
    border-radius:10px;
    display:block;
}

.event-details{
    width:55%;
}

.event-meta{
    margin-bottom:20px;
    padding:15px;
    background:#f8f8f8;
    border-left:4px solid #F5821F;
    border-radius:6px;
}

.event-description{
    margin-top:25px;
    line-height:1.8;
}

@media(max-width:768px){

.event-wrapper{
    flex-direction:column;
}

.event-image,
.event-details{
    width:100%;
}

.event-title{
    font-size:30px;
}

}


/* =========================================
   CVV EVENTS
========================================= */

.cvv-events-list {
    width: 100%;
}

.cvv-event-item {
    display: grid;
    grid-template-columns: 70px 110px 1fr 30px;
    gap: 18px;
    align-items: center;

    padding: 14px 0;
    border-bottom: 1px solid #e5e5e5;

    transition: 0.25s ease;
}


/* DATE */

.cvv-event-date {
    width: 62px;
    min-height: 72px;

    background: #fff8ef;
    border-radius: 7px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.cvv-event-day {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.1;
    color: #d58a20;
}

.cvv-event-month {
    font-size: 13px;
    font-weight: 700;
    color: #d58a20;
    line-height: 1.2;
}

.cvv-event-year {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}


/* IMAGE */

.cvv-event-image {
    width: 110px;
    height: 75px;
    overflow: hidden;
    border-radius: 4px;
}

.cvv-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cvv-event-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f1f1;
}


/* CONTENT */

.cvv-event-content {
    min-width: 0;
}

.cvv-event-content h3 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.3;
}

.cvv-event-content h3 a {
    color: #123b72;
    text-decoration: none;
}

.cvv-event-content h3 a:hover {
    color: #f5821f;
}

.cvv-event-description {
    margin: 0 0 5px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.cvv-event-meta {
    font-size: 12px;
    color: #555;
}

.cvv-event-venue {
    margin-top: 3px;
    font-size: 12px;
    color: #555;
}


/* ARROW */

.cvv-event-arrow {
    text-align: center;
}

.cvv-event-arrow a {
    font-size: 32px;
    color: #d99635;
    text-decoration: none;
    line-height: 1;
}

.cvv-event-arrow a:hover {
    color: #123b72;
}


/* HOVER */

.cvv-event-item:hover {
    background: #fafafa;
}


/* MOBILE */

@media (max-width: 767px) {

    .cvv-event-item {
        grid-template-columns: 60px 90px 1fr;
        gap: 12px;
    }

    .cvv-event-date {
        width: 55px;
        min-height: 68px;
    }

    .cvv-event-image {
        width: 90px;
        height: 65px;
    }

    .cvv-event-content h3 {
        font-size: 14px;
    }

    .cvv-event-description {
        font-size: 12px;
    }

    .cvv-event-arrow {
        display: none;
    }

}

@media (max-width: 480px) {

    .cvv-event-item {
        grid-template-columns: 55px 1fr;
        align-items: start;
    }

    .cvv-event-image {
        width: 100%;
        height: 90px;
        grid-column: 2;
    }

    .cvv-event-content {
        grid-column: 2;
    }

    .cvv-event-date {
        grid-row: span 2;
    }

}


/* =========================================
   CVV NEWS LIST
========================================= */

.cvv-news-list {
    width: 100%;
}


/* =========================================
   NEWS ITEM
========================================= */

.cvv-news-item {
    display: grid;

    /* Image | Content | Arrow */
    grid-template-columns: 25% minmax(0, 1fr) 70px;

    align-items: center;

    gap: 35px;

    width: 100%;

    padding: 24px 0;

    border-bottom: 1px solid #e5e5e5;
}


/* =========================================
   NEWS IMAGE
========================================= */

.cvv-news-image {
    width: 100%;
    overflow: hidden;
}

.cvv-news-image a {
    display: block;
}

.cvv-news-image img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.cvv-news-image a:hover img {
    transform: scale(1.04);
}


/* =========================================
   IMAGE PLACEHOLDER
========================================= */

.cvv-news-placeholder {
    width: 100%;

    aspect-ratio: 16 / 9;

    background: #f2f2f2;
}


/* =========================================
   NEWS CONTENT
========================================= */

.cvv-news-content {
    min-width: 0;
}


/* =========================================
   NEWS TITLE
========================================= */

.cvv-news-title {
    margin: 0 0 9px;

    font-size: 20px;

    line-height: 1.4;

    font-weight: 600;
}

.cvv-news-title a {
    color: #32327B;

    text-decoration: none;

    transition: color 0.3s ease;
}

.cvv-news-title a:hover {
    color: #0973BA;
}


/* =========================================
   NEWS DESCRIPTION
========================================= */

.cvv-news-description {
    margin: 0 0 10px;

    font-size: 14px;

    line-height: 1.6;

    color: #555;

    max-width: 750px;
}


/* =========================================
   NEWS DATE
========================================= */

.cvv-news-meta {
    font-size: 13px;

    line-height: 1.5;

    font-weight: 600;

    color: #0973BA;
}


/* =========================================
   ARROW
========================================= */

.cvv-news-arrow {
    display: flex;

    align-items: center;

    justify-content: center;
}

.cvv-news-arrow a {
    display: flex;

    align-items: center;

    justify-content: center;



    color: #d29a5c;

    font-size: 32px;

    line-height: 1;

    text-decoration: none;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.cvv-news-arrow a:hover {

    color: #d29a5c;

    transform: translateX(3px);
}


/* =========================================
   NO NEWS
========================================= */

.cvv-no-news {
    margin: 0;

    padding: 30px 0;

    text-align: center;

    font-size: 15px;

    color: #666;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .cvv-news-item {
        grid-template-columns: 27% minmax(0, 1fr) 60px;

        gap: 25px;

        padding: 22px 0;
    }

    .cvv-news-title {
        font-size: 19px;
    }

    .cvv-news-description {
        font-size: 14px;

        line-height: 1.55;
    }

    .cvv-news-arrow a {
        width: 44px;
        height: 44px;

        font-size: 30px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .cvv-news-item {
        display: grid;

        grid-template-columns: 1fr;

        gap: 15px;

        padding: 22px 0;
    }


    /* Full-width image on mobile */

    .cvv-news-image {
        width: 100%;
    }


    .cvv-news-image img {
        aspect-ratio: 16 / 9;
    }


    /* Title */

    .cvv-news-title {
        margin-bottom: 8px;

        font-size: 19px;

        line-height: 1.4;
    }


    /* Description */

    .cvv-news-description {
        margin-bottom: 9px;

        font-size: 14px;

        line-height: 1.6;
    }


    /* Date */

    .cvv-news-meta {
        font-size: 13px;
    }


    /* Arrow */

    .cvv-news-arrow {
        justify-content: flex-start;
    }

    .cvv-news-arrow a {
        width: 42px;
        height: 42px;

        font-size: 28px;
    }

}
/* =========================================================
   CVV TESTIMONIAL SLIDER
========================================================= */

.cvv-testimonial-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}


/* =========================================================
   SLIDER TRACK
========================================================= */

.cvv-testimonial-slider {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;

    transform: translate3d(0, 0, 0);

    transition: transform 0.5s ease;

    will-change: transform;
}


/* =========================================================
   SLIDE
========================================================= */

.cvv-testimonial-slide {
    flex: 0 0 33.333333%;
    width: 33.333333%;

    min-width: 0;

    padding: 10px 12px;

    box-sizing: border-box;
}


/* =========================================================
   CARD
========================================================= */

.cvv-testimonial-card {
    width: 100%;
    height: 100%;

    min-height: 280px;

    padding: 30px 28px;

    background: #ffffff;

    border: 1px solid #e7e7e7;

    border-radius: 8px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.05);

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.cvv-testimonial-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.09);
}


/* =========================================================
   QUOTE
========================================================= */

.cvv-testimonial-quote {
    width: 100%;
}


.cvv-testimonial-quote-mark {
    display: block;

    margin-bottom: 5px;

    font-family: Georgia, serif;

    font-size: 55px;

    line-height: 35px;

    color: #F5821F;
}


.cvv-testimonial-text {
    margin-top: 8px;

    font-size: 16px;

    line-height: 1.7;

    color: #555555;
}


.cvv-testimonial-text p {
    margin: 0 0 10px;
}


.cvv-testimonial-text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   PERSON
========================================================= */

.cvv-testimonial-person {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: auto;

    padding-top: 25px;
}


/* =========================================================
   PHOTO
========================================================= */

.cvv-testimonial-photo {
    flex: 0 0 58px;

    width: 58px;
    height: 58px;
}


.cvv-testimonial-image {
    display: block !important;

    width: 58px !important;
    height: 58px !important;

    max-width: 58px !important;

    object-fit: cover;

    border-radius: 50% !important;
}


/* =========================================================
   PERSON INFORMATION
========================================================= */

.cvv-testimonial-person-info {
    min-width: 0;
}


.cvv-testimonial-name {
    margin: 0 0 4px;

    font-size: 16px;

    line-height: 1.3;

    font-weight: 600;

    color: #173D73;
}


.cvv-testimonial-designation {
    font-size: 13px;

    line-height: 1.4;

    color: #666666;
}


.cvv-testimonial-organization {
    font-size: 12px;

    line-height: 1.4;

    color: #888888;
}


/* =========================================================
   CONTROLS
========================================================= */

.cvv-testimonial-controls {
    position: relative;

    z-index: 10;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

    margin-top: 25px;

    width: 100%;
}


/* =========================================================
   PREVIOUS / NEXT
========================================================= */

.cvv-testimonial-prev,
.cvv-testimonial-next {
    position: relative;

    z-index: 20;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 40px;
    height: 40px;

    margin: 0;
    padding: 0;

    border: 1px solid #dddddd;

    border-radius: 50%;

    background: #ffffff;

    color: #173D73;

    font-family: Arial, sans-serif;

    font-size: 26px;

    line-height: 1;

    text-align: center;

    cursor: pointer;

    pointer-events: auto;

    appearance: none;

    -webkit-appearance: none;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}


.cvv-testimonial-prev:hover,
.cvv-testimonial-next:hover {
    background: #0973BA;

    border-color: #0973BA;

    color: #ffffff;
}


.cvv-testimonial-prev:focus,
.cvv-testimonial-next:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(9, 115, 186, 0.15);
}


/* =========================================================
   DOTS
========================================================= */

.cvv-testimonial-dots {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 10px;
}


.cvv-testimonial-dot {
    display: block;

    width: 8px;
    height: 8px;

    margin: 0;
    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #cccccc;

    cursor: pointer;

    appearance: none;

    -webkit-appearance: none;
}


.cvv-testimonial-dot.active {
    width: 22px;

    border-radius: 5px;

    background: #F5821F;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .cvv-testimonial-slide {
        flex: 0 0 50%;
        width: 50%;

        padding: 10px 8px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .cvv-testimonial-slide {
        flex: 0 0 100%;
        width: 100%;

        padding: 8px 5px;
    }


    .cvv-testimonial-card {
        min-height: 250px;

        padding: 28px 24px;
    }


    .cvv-testimonial-text {
        font-size: 15px;

        line-height: 1.65;
    }


    .cvv-testimonial-controls {
        margin-top: 20px;
    }

}