/* Brand Colors */
:root {
    --mru-red: #C8102E;
    --mru-navy: #002D72;
    --mru-red-hover: #A00D24;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 45, 114, 0.85);
}

/* Custom Container - ONLY centering and max-width, NO padding */
.custom-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
    /* Tailwind max-w-7xl */
}

/* Responsive Container Widths - Matches Tailwind Breakpoints */
@media (min-width: 640px) {
    .custom-container {
        max-width: 640px;
        /* sm */
    }
}

@media (min-width: 768px) {
    .custom-container {
        max-width: 768px;
        /* md */
    }
}

@media (min-width: 1024px) {
    .custom-container {
        max-width: 1024px;
        /* lg */
    }
}

@media (min-width: 1280px) {
    .custom-container {
        max-width: 1280px;
        /* xl and max-w-7xl */
    }
}

/* Override Bootstrap Container if needed */
.custom-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Custom Row - matches Tailwind's gap-8 (2rem / 32px) */
.custom-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .custom-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Custom Column */
.custom-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Hero Section - matches pt-1 pb-6 md:pt-4 md:pb-6 px-1 */
.hero-section {
    position: relative;
    z-index: 10;
    color: white;
    padding-top: 0.25rem;
    padding-bottom: 1.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }
}

.hero-content {
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.logo {
    height: 46px;
    margin: 0;
    display: block;
}

@media (min-width: 768px) {
    .logo {
        height: 5rem;
        margin: 0 auto 0.75rem;

    }
}

/* Admissions Badge */
.admissions-badge {
    position: absolute;
    top: 10px;
    right: 0.25rem;
    z-index: 20;
    animation: pulse 2s ease-in-out infinite;
}

@media (min-width: 768px) {
    .admissions-badge {
        right: 0;
        top: 0px;
    }
}

.badge-custom {
    background-color: var(--mru-red) !important;
    color: white !important;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 12px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
}

/* Pulse Animation for Badge */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.05) translateY(-3px);
    }
}

/* Cards Section - matches px-4 pb-6 */
.cards-section {
    position: relative;
    z-index: 10;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1.5rem;
}

.card-animate {
    animation: fadeInUp 0.6s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.card-animate-delay {
    animation-delay: 0.2s;
}

/* Institution Cards */
.institution-card {
    position: relative;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 0.5rem;
    transition: all 0.5s ease-out;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .institution-card {
        min-height: 350px;
    }
}

.institution-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mriirs-card:hover {
    border-color: #fff;
}

.mru-card:hover {
    border-color: rgb(255 255 255);
}

.card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-out;
}

.institution-card:hover .card-bg-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    transition: background 0.5s ease-out;
}

.institution-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.35), transparent);
}

/* Card Content - matches p-6 gap-4 md:gap-6 */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .card-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }
}

.card-text-content {
    flex: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .card-title {
        font-size: 1.875rem;
    }
}



.card-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.card-cta {
    align-self: flex-end;
    flex-shrink: 0;
}

/* Custom Buttons - matches py-5 px-5 */
.btn-custom {
    position: relative;
    overflow: hidden;
    background-color: var(--mru-red) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    padding: 8px 14px !important;
    font-weight: 500;
    border-radius: 8px;
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-out;
    white-space: nowrap;
    font-size: .875rem;
}

@media (min-width: 768px) {
    .btn-custom {
        width: auto;
    }
}

.btn-custom:hover {
    background-color: var(--mru-red-hover) !important;
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 25px 50px -12px rgba(200, 16, 46, 0.5) !important;
    color: white !important;
}

.btn-custom:focus,
.btn-custom:active {
    box-shadow: 0 25px 50px -12px rgba(200, 16, 46, 0.5) !important;
    outline: none !important;
}

.btn-custom span {
    position: relative;
    z-index: 10;
}

.arrow-icon {
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease-out;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.btn-custom:hover .arrow-icon {
    transform: translateX(4px);
}

/* Shimmer Effect */
.shimmer-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
}

.btn-custom:hover .shimmer-effect {
    animation: shimmer 0.7s ease-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Programs Section - matches px-4 pb-16 */
.programs-section {
    position: relative;
    z-index: 10;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 4rem;
}

.programs-animate {
    animation: fadeInUp 0.6s ease-out 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Programs Header - matches gap-1 -mb-2 */
.programs-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: -0.5rem;
}

.graduation-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
}

.programs-title {
    font-size: 1.25rem;
    color: white;
    margin: 0;
    font-weight: 400;
}

/* Program Grid - matches grid-cols-1 md:grid-cols-2 gap-x-1 gap-y-1 */
.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 0.25rem;
    row-gap: 0.25rem;
}

@media (min-width: 768px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MRU Program Grid has gap-y-0 */
.program-grid-mru {
    row-gap: 0;
}

/* Program Item - matches gap-1 py-1 */
.program-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    animation: slideInLeft 0.4s ease-out;
    animation-fill-mode: forwards;
}

.program-item:nth-child(1) {
    animation-delay: 0.5s;
    opacity: 0;
}

.program-item:nth-child(2) {
    animation-delay: 0.55s;
    opacity: 0;
}

.program-item:nth-child(3) {
    animation-delay: 0.6s;
    opacity: 0;
}

.program-item:nth-child(4) {
    animation-delay: 0.65s;
    opacity: 0;
}

.program-item:nth-child(5) {
    animation-delay: 0.7s;
    opacity: 0;
}

.program-item:nth-child(6) {
    animation-delay: 0.75s;
    opacity: 0;
}

.program-item:nth-child(7) {
    animation-delay: 0.8s;
    opacity: 0;
}

.program-item:nth-child(8) {
    animation-delay: 0.85s;
    opacity: 0;
}

.program-item:nth-child(9) {
    animation-delay: 0.9s;
    opacity: 0;
}

.program-item:nth-child(10) {
    animation-delay: 0.95s;
    opacity: 0;
}

/* Arrow Icon - matches w-4 h-4 */
.arrow-right-icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

/* Program Text - matches text-sm */
.program-item span {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .card-content {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-cta {
        width: 100%;
    }

    .custom-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .btn-custom {
        padding: 8px 10px !important;
        font-size: 14px;
    }

    .card-overlay{
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgb(0 0 0 / 75%), transparent);
    }
}

@media(min-width: 768px) and (max-width: 991.98px) {
    .custom-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

}



@media (min-width: 992px) and (max-width: 1359.98px) {
    .custom-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .card-title {
        font-size: 20px;
    }
}