/**
 * Custom CSS for Portal 2025 Updates
 * Additional styles for new blocks and components
 */

/* Slider Full Width */
.slide-fullwidth {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 0;
    padding-right: 0;
    position: relative;
    left: 0;
    right: 0;
}

.slide-fullwidth .owl-carousel {
    width: 100%;
    margin: 0;
    padding: 0;
}

.slide-fullwidth .item {
    width: 100%;
    background-size: cover;
    background-position: center;
}

.slide-fullwidth .owl-nav div {
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.slide-fullwidth:hover .owl-nav div {
    opacity: 1;
}

.slide-fullwidth .owl-nav div.owl-prev {
    left: 20px;
}

.slide-fullwidth .owl-nav div.owl-next {
    right: 20px;
}

/* Programs Block Styles */
.programs-block {
    padding: 60px 0;
    background: #f8f9fa;
}

.programs-block .section-header {
    margin-bottom: 50px;
}

.programs-block .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #19143C;
    margin-bottom: 15px;
}

.programs-block .section-description {
    font-size: 16px;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.programs-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.program-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.program-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.program-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(233, 75, 2, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover .program-overlay {
    opacity: 1;
}

.program-overlay .btn-view {
    background: #fff;
    color: #E94B02;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.program-overlay .btn-view:hover {
    background: #19143C;
    color: #fff;
}

.program-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-title {
    font-size: 24px;
    font-weight: 700;
    color: #19143C;
    margin-bottom: 15px;
}

.program-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.program-title a:hover {
    color: #E94B02;
}

.program-description {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

.program-meta {
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

.program-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.program-meta i {
    color: #E94B02;
}

.program-link {
    color: #E94B02;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.program-link:hover {
    color: #19143C;
    gap: 8px;
}

.program-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.program-link:hover i {
    transform: translateX(3px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .programs-block .section-title {
        font-size: 28px;
    }
    
    .program-image {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .programs-block {
        padding: 40px 0;
    }
    
    .programs-block .section-header {
        margin-bottom: 30px;
    }
    
    .program-card {
        margin-bottom: 20px;
    }
    
    .program-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Mission Vision Block Styles */
.mission-vision-block-stanford {
    /* background-color: #f8f9fa; */
    padding: 80px 0;
    position: relative;
}

.mission-vision-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.mission-title-wrapper {
    margin-bottom: 30px;
}

.mission-main-title {
    font-size: 36px;
    font-weight: 700;
    color: #19143C;
    line-height: 1.3;
    margin: 0;
}

.mission-description-wrapper {
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.mission-description {
    font-size: 18px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

.mission-cta-wrapper {
    margin-top: 30px;
}

.mission-cta-button {
    display: inline-block;
    background-color: #E94B02;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 40px;
    text-decoration: none;
    /* border-radius: 25px; */
    transition: all 0.3s ease;
    border: 2px solid #E94B02;
}

.mission-cta-button:hover {
    background-color: #19143C;
    border-color: #19143C;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 75, 2, 0.3);
}

/* Mission Vision Responsive */
@media (max-width: 991px) {
    .mission-vision-block-stanford {
        padding: 60px 0;
    }
    
    .mission-main-title {
        font-size: 30px;
    }
    
    .mission-description {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .mission-vision-block-stanford {
        padding: 50px 0;
    }
    
    .mission-main-title {
        font-size: 26px;
    }
    
    .mission-description-wrapper {
        margin-bottom: 30px;
    }
    
    .mission-description {
        font-size: 16px;
    }
    
    .mission-cta-button {
        padding: 12px 35px;
        font-size: 15px;
    }
}

/* View All Button Styles */
.btn-view-all {
    display: inline-block;
    background-color: #E94B02;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 40px;
    text-decoration: none;
    /* border-radius: 25px; */
    transition: all 0.3s ease;
    border: 2px solid #E94B02;
}

.btn-view-all:hover {
    background-color: #19143C;
    border-color: #19143C;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 75, 2, 0.3);
}

.btn-view-all i {
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .btn-view-all {
        padding: 12px 35px;
        font-size: 15px;
    }
}

/* News Card Styles */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.news-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.125em;
    font-weight: 700;
    color: #19143C;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #E94B02;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6b7280;
}

.news-category a {
    color: #E94B02;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-category a:hover {
    color: #19143C;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date i {
    color: #E94B02;
}

.news-description {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* News Card Responsive */
@media (max-width: 991px) {
    .news-image {
        height: 200px;
    }
    
    .news-title {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .news-card {
        margin-bottom: 20px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-meta {
        flex-direction: column;
    }
}

/* Featured News Block Styles */
.featured-news-block {
    padding: 60px 0;
    background: #fff;
}
.featured-news-block h2.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #19143C;
}

.featured-news-block .section-header {
    margin-bottom: 40px;
}

/* Featured News Card (Left) */
.featured-news-card {
    background: transparent;
    height: 100%;
}

.featured-news-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-news-content {
    padding: 20px 0 0 0;
}

.featured-news-title {
    font-size: 1.125em;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.featured-news-title a {
    color: #19143C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-news-title a:hover {
    color: #E94B02;
}

.featured-news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.featured-news-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 14px;
}

.featured-news-date i {
    color: #E94B02;
}

.featured-news-description {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.featured-news-link {
    display: inline-block;
    color: #E94B02;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-news-link:hover {
    color: #19143C;
    padding-left: 5px;
}

/* Recent News List (Right) */
.recent-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-news-item {
    background: transparent;
    display: flex;
    height: auto;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.recent-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-news-image {
    width: 150px;
    min-width: 150px;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.recent-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-news-content {
    padding: 0 0 0 20px;
    flex: 1;
}

.recent-news-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.recent-news-title a {
    color: #19143C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-news-title a:hover {
    color: #E94B02;
}

.recent-news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.recent-news-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 13px;
}

.recent-news-date i {
    color: #E94B02;
}

.recent-news-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.recent-news-link {
    display: inline-block;
    color: #E94B02;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-news-link:hover {
    color: #19143C;
    padding-left: 5px;
}

/* Featured News Responsive */
@media (max-width: 991px) {
    .featured-news-image {
        height: 300px;
    }
    
    .featured-news-content {
        padding: 20px;
    }
    
    .featured-news-title {
        font-size: 20px;
    }
    
    .recent-news-list {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .featured-news-block {
        padding: 40px 0;
    }
    
    .featured-news-image {
        height: 250px;
    }
    
    .featured-news-title {
        font-size: 18px;
    }
    
    .recent-news-item {
        flex-direction: column;
    }
    
    .recent-news-image {
        width: 100%;
        height: 200px;
    }
    
    .recent-news-content {
        padding: 15px;
    }
}

/* Page Detail Styles */
.static-page-content {
    padding: 40px 0;
}

.static-page-content .page-title {
    font-size: 36px;
    font-weight: 700;
    color: #19143C;
    margin-bottom: 30px;
    line-height: 1.3;
}

.static-page-content .page-content {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
}

.dynamic-page-content {
    /* padding: 40px 0; */
}

.dynamic-page-content .section-header {
    margin-bottom: 40px;
}

.dynamic-block {
    margin-bottom: 60px;
}

.dynamic-block .section-header {
    margin-bottom: 30px;
}
