/* Index Page Specific Styles */

/* Hero Carousel */
.hero-section {
    position: relative;
    overflow: hidden;
}

.carousel-image {
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.carousel-caption {
    position: relative;
    text-align: left;
    left: 0;
    right: 0;
    padding: 0 15%;
    bottom: 0;
    color: var(--white);
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    /* remove default circular background, keep only the arrow */
    background-color: transparent;
    width: 50px;
    height: 50px;
    background-size: 50%;
}

/* Updates Section (News + Latest Admissions & Alumni) */
.updates-section {
    background: #f8f9fb;
}

.section-lead {
    font-size: 1rem;
    color: var(--light-text);
    max-width: 520px;
    margin-top: 10px;
}

.section-title-sm {
    font-size: 1.6rem;
}

.news-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.news-item {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border-left: 4px solid var(--secondary-color);
}

.news-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
    font-weight: 600;
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 2px;
}

.news-title {
    font-size: 1.05rem;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--dark-text);
}

.news-link {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.news-link:hover {
    text-decoration: underline;
}

.updates-right {
    padding: 1.5rem 1.8rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.updates-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* News carousel (vertical-style controls) */
.news-carousel {
    margin-top: 1.5rem;
}

.news-carousel .carousel-inner {
    min-height: 210px;
}

.news-carousel-control {
    width: 32px;
    height: 32px;
    border-radius: 0;
    background-color: transparent;
    border: none;
    opacity: 1;
}

.news-carousel .carousel-control-prev.news-carousel-control {
    top: 0.5rem;
    bottom: auto;
    right: 0.5rem;
    left: auto;
}

.news-carousel .carousel-control-next.news-carousel-control {
    top: auto;
    bottom: 0.5rem;
    right: 0.5rem;
    left: auto;
}

.news-carousel-control i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.news-carousel-control:hover i {
    color: var(--secondary-color);
}

/* Admissions & Alumni Carousels */
.admission-card,
.alumni-card {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.admission-card img,
.alumni-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Generic carousel controls (admissions, alumni, hero) - no filled background */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background-color: transparent;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

/* Stats within Updates section */
.updates-stats .fact-item {
    padding: 0.75rem 0.5rem;
}

.updates-stats .fact-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.updates-stats .fact-item p {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 0;
}

/* Home About Section */
.about-home-section {
    background: #ffffff;
}

.about-badge {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary-color);
    font-weight: 600;
}

.about-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.about-list li {
    font-size: 0.95rem;
    margin-bottom: 0.45rem;
}

.about-list i {
    color: var(--secondary-color);
    margin-right: 0.4rem;
}

.about-card {
    background: linear-gradient(135deg, rgba(0,51,102,0.95), rgba(0,51,102,0.8));
    border-radius: 14px;
    padding: 2rem 1.8rem;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.about-card-inner h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.about-card-inner p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.about-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}

.about-link:hover {
    text-decoration: underline;
}

.about-image-card {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MBBS at XJMU Section */
.mbbs-section {
    background: #ffffff;
}

.mbbs-highlights {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 1rem;
}

.mbbs-highlights li {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.mbbs-tables-wrapper {
    background: #f8f9fb;
    padding: 1.5rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.mbbs-table-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.mbbs-table {
    font-size: 0.9rem;
    background-color: #ffffff;
}

.mbbs-table th {
    width: 45%;
    background-color: #f0f2f5;
}

.mbbs-table td,
.mbbs-table th {
    padding: 0.5rem 0.75rem;
    vertical-align: top;
}

/* Why Choose Section */
.why-section {
    background: #ffffff;
}

.why-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    height: 100%;
}

.why-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.why-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* How to Apply Section */
.apply-steps-section {
    background: #f8f9fb;
}

.apply-steps {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.apply-steps li {
    margin-bottom: 0.55rem;
}

.apply-highlight {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.apply-highlight h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.apply-support-list {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 0;
}

.apply-support-list li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.apply-support-list i {
    color: var(--secondary-color);
    margin-right: 0.4rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .carousel-caption {
        padding: 0 10%;
    }
    
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
    
    .carousel-image {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        padding: 0 5%;
        text-align: center;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-image {
        height: 400px;
    }
    
    .admission-card img,
    .alumni-card img {
        height: 200px;
        object-fit: cover;
    }
}