/* Base CSS for Premium UI/UX of Mehilal Prasad Charitable and Educational Trust (MPCET) */
:root {
    --primary-color: #123C88;      /* Primary Blue */
    --secondary-color: #182B66;    /* Royal Navy */
    --nature-green: #3BAA35;       /* Leaf Green */
    --leaf-green: #3BAA35;         /* Leaf Green */
    --accent-orange: #F36C21;      /* Orange Accent */
    --golden-highlight: #D7A84B;   /* Gold Accent */
    --white: #FFFFFF;
    --light-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --section-bg: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --border-color: #E2E8F0;
    --card-shadow: 0 10px 30px rgba(18, 60, 136, 0.05);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white {
    color: #ffffff !important;
}

/* Page Loader styling */
#page-loader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, var(--secondary-color) 0%, var(--primary-color) 100%);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: var(--white);
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
.loader-progress-bar-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}
.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange) 0%, var(--golden-highlight) 100%);
    animation: loadProgress 1.6s ease-in-out forwards;
}
@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}
.animate-pulse {
    animation: pulseLogo 2s infinite ease-in-out;
}
@keyframes pulseLogo {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.15)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.45)); }
}

/* Custom translation widget styling */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}
.goog-te-gadget {
    font-family: var(--font-body) !important;
}
.goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid var(--border-color) !important;
    padding: 6px 12px !important;
    border-radius: 30px !important;
    cursor: pointer !important;
}

/* Sticky Header with Blur Effect */
.navbar-custom {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 18px 0;
    background: transparent;
}
.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(16, 43, 114, 0.06);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.navbar-custom.scrolled .nav-link {
    color: var(--text-primary) !important;
}
.navbar-custom.scrolled .navbar-brand {
    color: var(--primary-color) !important;
}
.nav-link {
    font-weight: 600;
    color: #fff !important;
    transition: all 0.3s ease;
    padding: 10px 15px !important;
}
.nav-link:hover {
    color: var(--accent-orange) !important;
}
.navbar-custom.scrolled .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Logo CSS backup */
.logo-fallback-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--nature-green) 100%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    border: 2px solid var(--golden-highlight);
}

/* Gradient Buttons */
.btn-primary-grad {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 24px;
}
.btn-primary-grad:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 43, 114, 0.3);
    color: #fff;
}

.btn-secondary-grad {
    background: linear-gradient(135deg, var(--nature-green) 0%, var(--leaf-green) 100%);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 24px;
}
.btn-secondary-grad:hover {
    background: linear-gradient(135deg, var(--leaf-green) 0%, var(--nature-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(62, 155, 61, 0.3);
    color: #fff;
}

.btn-accent-grad {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #FF8D4B 100%);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 26px;
}
.btn-accent-grad:hover {
    background: linear-gradient(135deg, #FF8D4B 0%, var(--accent-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 107, 33, 0.3);
    color: #fff;
}

/* Glassmorphism elements */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 43, 114, 0.12);
}

/* Hero Section */
.hero-slider-section {
    height: 100vh;
    position: relative;
}
.swiper-slide::before {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: linear-gradient(180deg, rgba(16, 43, 114, 0.65) 0%, rgba(16, 43, 114, 0.4) 100%);
}

/* Custom Drawer / Mobile Navigation */
.drawer-nav {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--white);
    z-index: 1050;
    box-shadow: 5px 0 25px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.77,0,0.175,1);
    padding: 20px;
    overflow-y: auto;
}
.drawer-nav.active {
    left: 0;
}
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}
.drawer-overlay.active {
    display: block;
}

/* Document Designs */
.id-card-container {
    width: 350px;
    height: 520px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 4px solid #fff;
    margin: 0 auto;
}
.id-card-photo {
    width: 115px;
    height: 115px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-orange);
    margin: 15px auto;
    display: block;
}

.cert-letter-box {
    background-color: #fff;
    border: 15px double var(--primary-color);
    padding: 50px;
    position: relative;
    box-shadow: var(--card-shadow);
    color: var(--text-primary);
    max-width: 800px;
    margin: 30px auto;
}

/* Sidebar layouts */
.admin-sidebar {
    min-height: 100vh;
    background-color: var(--primary-color);
    color: #fff;
    transition: all 0.3s;
}
.admin-sidebar a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 14px 20px;
    display: block;
    transition: all 0.2s;
    font-weight: 500;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background-color: var(--secondary-color);
    color: #fff;
    border-left: 5px solid var(--accent-orange);
}
.admin-content {
    background-color: var(--light-bg);
    min-height: 100vh;
    padding: 35px;
}
.sig-canvas-container {
    border: 2px dashed var(--border-color);
    background-color: var(--light-bg);
    border-radius: 12px;
}

/* Footer social buttons & dynamic animations */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
}
.social-btn:hover {
    background-color: var(--accent-orange);
    color: #fff;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 5px 15px rgba(243, 107, 33, 0.4);
}
.footer-links a {
    transition: all 0.25s ease;
}
.footer-links a:hover {
    color: var(--golden-highlight) !important;
    padding-left: 6px;
}
.footer-impact li {
    transition: all 0.25s ease;
}
.footer-impact li:hover {
    color: #fff !important;
    transform: translateX(4px);
}

/* Premium Custom Homepage Enhancements */
.rounded-card {
    border-radius: 20px !important;
    overflow: hidden;
}

.shadow-soft {
    box-shadow: 0 10px 30px rgba(18, 60, 136, 0.06) !important;
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 32px 0 rgba(18, 60, 136, 0.06) !important;
}

/* Glow Effect */
.glow-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}
.glow-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 25px rgba(243, 108, 33, 0.25);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}
.glow-card:hover {
    transform: translateY(-8px);
}
.glow-card:hover::after {
    opacity: 1;
}

/* Floating Shapes and Leaves */
.animated-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
}
.floating-leaf {
    position: absolute;
    width: 40px;
    height: 40px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233BAA35'><path d='M17,8C8,10 5.9,16.17 3.82,21.34L2.18,20.66C4.26,15.49 6.36,9.32 15.36,7.3C13,5 9,3 9,3C9,3 13,3 16,5C19,7 21,11 21,11C21,11 19,9 17,8Z'/></svg>") no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 3;
    opacity: 0.55;
}

/* Swiper Hero Layout Customization */
.hero-slider-section .swiper-button-prev,
.hero-slider-section .swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.3s ease;
}
.hero-slider-section .swiper-button-prev:after,
.hero-slider-section .swiper-button-next:after {
    font-size: 1.2rem;
    font-weight: bold;
}
.hero-slider-section .swiper-button-prev:hover,
.hero-slider-section .swiper-button-next:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}
.hero-slider-section .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
}
.hero-slider-section .swiper-pagination-bullet-active {
    background: var(--accent-orange);
    width: 28px;
    border-radius: 5px;
}

/* Impact Area Icons */
.impact-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    background: rgba(18, 60, 136, 0.08);
    color: var(--primary-color);
    transition: all 0.3s ease;
}
.glow-card:hover .impact-icon-wrapper {
    transform: rotateY(180deg);
    background: var(--accent-orange);
    color: #fff;
}

/* Timeline Custom Styles */
.timeline-container {
    position: relative;
    padding-left: 30px;
    border-left: 3px dashed var(--border-color);
}
.timeline-item {
    position: relative;
    padding-bottom: 40px;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -41.5px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--accent-orange);
    transition: all 0.3s ease;
}
.timeline-item:hover .timeline-dot {
    background: var(--accent-orange);
    transform: scale(1.3);
}

/* Partners Marquee Scroller */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
}
.marquee-track {
    display: inline-block;
    animation: marquee 25s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-track img {
    height: 50px;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.marquee-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Gallery Filter and Lightbox Styling */
.gallery-filter-btn {
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 24px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}
.gallery-filter-btn.active, .gallery-filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 250px;
    cursor: pointer;
}
.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gallery-img-wrapper:hover img {
    transform: scale(1.1) rotate(1deg);
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 27, 102, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: all 0.3s ease;
    color: #fff;
    padding: 20px;
}
.gallery-img-wrapper:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox Modal */
.custom-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.custom-lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox-content {
    max-width: 80%;
    max-height: 80%;
}
.lightbox-content img, .lightbox-content iframe {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 10px;
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
}

/* Back to Top button */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #FF8D4B 100%);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(243, 107, 33, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
}
#backToTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(243, 107, 33, 0.6);
}

/* Step Wizard Progress styles */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 50px;
    margin-top: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.step-indicator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}
.step-indicator .step {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #94a3b8;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.step-indicator .step.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(18, 60, 136, 0.3);
}
.step-indicator .step.completed {
    border-color: var(--nature-green);
    background: var(--nature-green);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 170, 53, 0.3);
}
.step-indicator .step .step-title {
    position: absolute;
    top: 58px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}
.step-indicator .step.active .step-title {
    color: var(--primary-color);
    font-weight: 700;
}
.step-indicator .step.completed .step-title {
    color: var(--nature-green);
}


