/* 
    Premium Design System for BPR School & College of Nursing
    Custom Overrides and Enhancements
*/

:root {
    --primary: #068075;
    --primary-dark: #04635b;
    --primary-light: #08a698;
    --secondary: #1a2a3a;
    --accent: #f2b679;
    --white: #ffffff;
    --soft-gray: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(6, 128, 117, 0.15);
}

/* --- Global Enhancements --- */
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Premium Navigation */


/* Premium Section Titles (Applied ONLY to content areas) */
.blog-area .main-title,
.work-area .main-title,
.admission-process-card h3,
.premium-section h2 {
    font-weight: 800 !important;
    background: linear-gradient(135deg, #1a2a3a 0%, #068075 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 20px !important;
}

/* Restore Old Banner Style & Section Titles (Solid as defined in style.css or dark background) */
.page-banner-area h1,
.page-banner-area .main-title,
.how-we-work-area .main-title,
.header-area h1,
.text-white h1,
.text-white.main-title {
    background: none !important;
    -webkit-text-fill-color: inherit !important;
    color: inherit !important;
    text-shadow: none !important;
}

/* Base Main Title fallback (Solid Green from style.css) */
.main-title {
    color: var(--primary) !important;
    -webkit-text-fill-color: var(--primary) !important;
}


.top-title,
.sub-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700 !important;
    color: var(--primary) !important;
    font-size: 14px !important;
    margin-bottom: 12px !important;
    display: inline-block;
}

/* Card & Image Container Enhancements */
.blog-single-item,
.case-study-single-item-three,
.card,
.about-img,
.admission-process-card {
    border-radius: 24px !important;
    overflow: hidden !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

/* Premium Hover Actions */
.blog-single-item:hover,
.case-study-single-item-three:hover,
.card:hover,
.about-img:hover {
    transform: translateY(-12px) !important;
    box-shadow: var(--shadow-hover) !important;
    border-color: rgba(6, 128, 117, 0.1) !important;
}

.blog-single-item img,
.case-study-single-item-three img,
.about-img img {
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.blog-single-item:hover img,
.case-study-single-item-three:hover img,
.about-img:hover img {
    transform: scale(1.1) !important;
}

/* Custom Animation Classes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-animation {
    animation: float 5s ease-in-out infinite;
}

@keyframes pulse-soft {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.pulse-animation {
    animation: pulse-soft 2s infinite ease-in-out;
}

/* Form Styling Premium */
.form-control,
.newsletter-form input {
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
    padding: 14px 22px !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 5px rgba(6, 128, 117, 0.08) !important;
}

/* Section Highlighting */
.section-highlight {
    background: linear-gradient(145deg, #ffffff, #f1f8f7) !important;
    border-left: 5px solid var(--primary) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin-bottom: 20px;
}





/* Section Header Centering Fix */
.text-center .main-title {
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-block;
}

/* Sidebar Card & Course Summary Colors */
.course-sidebar .card {
    border: none !important;
    background: var(--soft-gray) !important;
}

.course-sidebar .card h4 {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 25px !important;
}

/* Badge Color Harmony */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

/* Enquiry Popup Improvements */
.enquiry-box {
    border-radius: 30px !important;
    padding: 40px !important;
    border: 1px solid rgba(6, 128, 117, 0.1) !important;
}

.enquiry-box h3 {
    margin-bottom: 30px !important;
    text-align: center;
}

.enquiry-box select,
.enquiry-box input {
    border-radius: 12px !important;
    margin-bottom: 15px !important;
    height: 50px !important;
}

.enquiry-box button {
    height: 55px !important;
    border-radius: 50px !important;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    box-shadow: 0 10px 20px rgba(6, 128, 117, 0.2) !important;
    transition: all 0.3s ease !important;
}

.enquiry-box button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(6, 128, 117, 0.3) !important;
}


/* Footer Copyright Alignment */
.copy-right-area {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Alignment Fixes */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 20px 0;
    }

    .navbar-nav .nav-link {
        padding: 10px 0 !important;
    }
}

/* Color Utilities */
.bg-primary-soft {
    background-color: rgba(6, 128, 117, 0.05) !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* Back to Top Enhancement */
/* #backtotop {
    background: var(--primary) !important;
    width: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
    box-shadow: 0 10px 20px rgba(6, 128, 117, 0.3) !important;
} */

/* Facilities/Blog Card Alignment Improvement */
.blog-single-item {
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 30px;
}

.blog-single-item:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(6, 128, 117, 0.15) !important;
    border-color: var(--primary-light) !important;
}

.blog-single-item img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    border-bottom: 3px solid var(--primary);
}

.blog-content {
    padding: 25px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.blog-content h3 {
    font-size: 20px !important;
    margin-bottom: 12px !important;
    color: #1a2a3a !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.blog-content p {
    flex-grow: 1 !important;
    margin-bottom: 20px !important;
    color: #555 !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
}

.read-more {
    font-weight: 700 !important;
    color: var(--primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: auto !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 15px !important;
}

.read-more i {
    transition: transform 0.3s ease !important;
}

.read-more:hover {
    color: var(--secondary) !important;
}

.read-more:hover i {
    transform: translateX(5px) !important;
}

/* Ensure Row Children Stretch */
.row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

.col-lg-4.col-md-6.d-flex {
    display: flex !important;
}

/* Premium Gallery Styles */
.gallery-section {
    padding: 100px 0;
    background: #fdfdfd;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(20px);
}

.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

.gallery-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(6, 128, 117, 0.9) 0%, rgba(26, 42, 58, 0.4) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.5s ease;
}

.gallery-content {
    color: white;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
}

.gallery-content h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 8px !important;
    -webkit-text-fill-color: white !important;
    background: none !important;
}

.gallery-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.gallery-item:hover .gallery-img-wrap img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
    z-index: 10;
}

.gallery-item:hover .view-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0.1s;
}

.view-btn:hover {
    background: white;
    color: var(--primary);
}

/* Pagination Styles */
.premium-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-link-custom {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--secondary);
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.page-link-custom:hover,
.page-link-custom.active {
    background: var(--primary);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(6, 128, 117, 0.2);
}

.page-link-custom.disabled {
    opacity: 0.5;
    pointer-events: none;
}