@import url('https://fonts.googleapis.com/css2?family=Alice&amp;family=Playfair+Display:wght@400;700&amp;display=swap');

body {
    font-family: 'Alice', serif;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Playfair Display', serif;
}

.top-header {
    background-color: #2a2347;
    color: white;
    padding: 10px 0;
}

.top-header a {
    color: white;
    margin: 0 10px;
}

.top-header .social-icons a {
    font-size: 1.2em;
}

.navbar-brand img {
    height: 70px;
}

.navbar {
    background-color: white;
    border-bottom: 1px solid #ddd;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: bold;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #2a2347;
}

.hero-section {
    background-color: #f8f9fa;
    /* padding: 60px 0; */ /* REMOVED - This was the old padding causing space */
    text-align: center;
}

.footer {
    background-color: #333;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.footer a {
	color: #FFFFFF;
}

.how-to-apply-section {
    padding: 60px 0;
    background-color: #2a2347;
    color: white;
}

.how-to-apply-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    font-weight: 600;
}

.step-card {
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    height: 100%;
    color: white;
}

.step-card .icon {
    font-size: 3em;
    color: white;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.5em;
    color: white;
    margin-bottom: 15px;
    font-weight: 500;
}

.step-card p {
    font-size: 0.95em;
    color: white;
    opacity: 0.9;
}

.apply-now-btn {
    background-color: white;
    border-color: white;
    color: #2a2347;
    font-weight: 600;
    padding: 10px 25px;
    text-decoration: none; /* Ensure no underline from default <a> tag */
    display: inline-block; /* For proper padding */
    border-radius: 5px; /* Consistent button styling */
}

.apply-now-btn:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    color: #2a2347;
}

.apply-now-vertical-btn {
    background-color: #2a2347;
    color: white;
    padding: 15px 10px;
    text-decoration: none;
    border-radius: 0 5px 5px 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    line-height: 1;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    z-index: 1030;
}

.apply-now-vertical-btn:hover {
    background-color: #d41447;
    color: white;
}

.whatsapp-floating-btn {
    background-color: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1030;
}

.whatsapp-floating-btn:hover {
    background-color: #1DAE52;
    color: white;
}
.email-text a{
	text-decoration:none;
}
/* Mobile Header Adjustments */
@media (max-width: 767.98px) { 
    .top-header .email-info .email-text {
        display: none;
    }
    .top-header .social-icons .email-info,
    .top-header .social-icons a {
        margin: 0 4px;
    }
    .top-header .social-icons .email-info:first-child {
        margin-left: 0;
    }
    .top-header .container .row > [class*="col-"] {
        padding-left: 7px;
        padding-right: 7px;
    }
}

/* General Utility Classes (can be expanded) */
.text-primary-color {
    color: #2a2347 !important; /* Important to override Bootstrap if needed */
}

.bg-primary-color {
    background-color: #2a2347 !important;
}

.btn-custom-primary {
    background-color: #2a2347;
    border-color: #2a2347;
    color: white;
}

.btn-custom-primary:hover {
    background-color: #d41447;
    border-color: #d41447;
    color: white;
}

/* Footer specific styling */
.footer .fw-bold.text-uppercase {
	color: #CCCC00 !important; /* Override Bootstrap if necessary */
}

.footer a.text-white:hover {
    color: #f0f0f0 !important; /* Lighter shade of white on hover */
    text-decoration: underline !important;
}

.footer .social-icons-footer a {
    color: white;
    margin: 0 8px;
    font-size: 1.3em;
}

.footer .social-icons-footer a:hover {
    color: #2a2347;
}

.footer .made-by-link {
    text-decoration: none;
    font-weight: bold;
    color: white;
}

.footer .made-by-link:hover {
    color: #f0f0f0;
}

/* Hero Section Refinement */
.hero-section {
    background-size: cover; /* For background image if it were still a direct background */
    background-position: center center;
    color: white;
    /* padding: 100px 0; */ /* REMOVED - This was adding space above/below the carousel */
    position: relative;
    /* No direct padding needed here anymore, height is determined by carousel items */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text visibility */
    z-index: 1;
}

.hero-section .container {
    position: relative; /* Ensure content is above overlay */
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* About Us Section (Example - can be expanded) */
.about-us-section {
    padding: 60px 0;
}

/* How to Apply Section - further refinements if needed after inline style removal */
.how-to-apply-section .step-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-to-apply-section .step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Enhanced shadow on hover, if cards get background again */
}

/* Ensure dropdown menu items get the primary color on hover */
.dropdown-menu > li > a.dropdown-item:hover,
.dropdown-menu > li > a.dropdown-item:focus {
    background-color: #2a2347;
    color: white;
}

/* Navbar active link color */
.navbar-nav .nav-item.active .nav-link {
    color: #2a2347;
}

/* Standardized Course Page Hero Section */
.course-hero-section {
    background-color: #2a2347; /* Primary theme color */
    color: white;
    padding: 4rem 0; /* Ample padding, adjust as needed */
    text-align: center;
}

.course-hero-section h1 {
    font-weight: bold;
    font-size: 2.8rem; /* Prominent title */
    margin-bottom: 0.75rem;
}

.course-hero-section .lead {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Updated styles for leadership page headers with background images */
.hero-section-course {
    position: relative; /* For overlay positioning */
    background-size: cover;
    background-position: center center;
    padding: 4rem 0; /* Consistent padding */
    color: white; /* Default text color */
}

.hero-section-course::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2347; /* Primary color overlay with 70% opacity */
    z-index: 1;
}

.hero-section-course .container {
    position: relative; /* Ensure content is above overlay */
    z-index: 2;
}

.hero-section-course h1 {
    font-weight: bold;
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    color: white; /* Explicitly set for visibility over overlay */
}

.hero-section-course .lead {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    color: white; /* Explicitly set for visibility over overlay */
}

/* Old .page-header-background, .page-title-overlay, .page-subtitle-overlay can be removed if no longer used elsewhere */
.page-header-background {
    /* padding: 3rem 0; */ 
}
.page-title-overlay, 
.page-subtitle-overlay {
    /* color: white !important; */
}

/* Modernized Message Card Styles */
.message-card {
    border: none !important; /* Remove default card border, !important to override bootstrap */
    border-radius: 1rem; /* More rounded corners */
    overflow: hidden; /* Ensure content respects rounded corners */
    /* box-shadow will be applied via class e.g., shadow-lg */
}

.message-card .image-column {
    background-color: #f8f9fa; /* A light, neutral background */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
    align-items: center; /* Horizontally center content if text-center class is on this div */
    padding: 2rem 1.5rem; /* Generous padding */
}

.message-card .image-column img.rounded-circle { /* Target the image more specifically */
    border: 4px solid #2a2347; /* Primary color border for the image */
    padding: 4px; /* Space between image and border */
    background-color: white; /* Ensure area inside border is white if image is transparent */
    box-shadow: 0 0 15px rgba(0,0,0,0.1); /* Subtle shadow for the image itself */
    max-width: 200px; /* Retain max-width control */
    margin-left: auto;
    margin-right: auto;
}

.message-card .image-column .card-title {
    font-size: 1.3rem; /* Name of the person */
    font-weight: 600;
    color: #2a2347; /* Ensure primary color for name */
}

.message-card .image-column .text-muted.small { /* Target designation specifically */
    font-size: 0.95rem; /* Designation */
}

.message-card .message-content-column .card-body {
    padding: 2.5rem; /* More padding for message content */
}

.message-card .message-content-column .card-body h4.message-body-title { /* For the "A Message from..." subheading */
    font-weight: 600;
    color: #495057; /* A softer, secondary text color */
    font-size: 1.4rem;
    margin-bottom: 1.5rem; /* Space below this title */
}

.message-card .message-content-column .card-body p {
    line-height: 1.75;
    font-size: 1.05rem; /* Slightly larger for readability */
    color: #343a40; /* Darker text for better contrast */
    margin-bottom: 1.25rem; /* Spacing between paragraphs */
}

.message-card .message-content-column .card-body p:last-child {
    margin-bottom: 0; /* Remove margin from last paragraph if it's the signature */
}

.message-card .message-content-column .card-body p strong {
    color: #000; /* Ensure signature name is prominent */
}

/* Responsive adjustments for the message card */
@media (max-width: 767.98px) { /* md breakpoint and below */
    .message-card .image-column {
        padding: 1.5rem;
    }
    .message-card .image-column img.rounded-circle {
        max-width: 150px !important; /* Smaller image on mobile */
        margin-top: 0 !important; /* Remove my-4 specific margin if it was added inline */
        margin-bottom: 1rem !important; /* Adjust spacing for name/title */
    }
     .message-card .image-column .card-title {
        font-size: 1.15rem;
    }
    .message-card .image-column .text-muted.small {
        font-size: 0.9rem;
        margin-bottom: 0 !important; /* Remove mb-4 from inline if added */
    }
    .message-card .message-content-column .card-body {
        padding: 1.5rem;
    }
    .message-card .message-content-column .card-body h4.message-body-title {
        font-size: 1.2rem;
    }
     .message-card .message-content-column .card-body p {
        font-size: 1rem;
    }
}

/* Vision & Mission Page Specific Styles */
.vision-mission-page main {
    padding-top: 3rem; /* Add some space from the header */
    padding-bottom: 3rem;
}

.vision-mission-page .content-header {
    margin-bottom: 3rem; /* Space below the main "Vision & Mission" title */
}

.vision-mission-page .content-header h1 {
    font-weight: 700; /* Bolder main title */
    font-size: 2.5rem;
}

.vision-mission-page .section-block {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2.5rem;
}

.vision-mission-page .section-block h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2a2347; /* Primary color for section titles */
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.vision-mission-page .section-block h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #2a2347;
}

.vision-mission-page .section-block p,
.vision-mission-page .section-block ul li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057; /* Slightly softer text color for body */
}

.vision-mission-page .section-block ul {
    list-style: none;
    padding-left: 0;
}

.vision-mission-page .section-block ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.vision-mission-page .section-block ul li::before {
    content: '\f058'; /* FontAwesome check-circle icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900; /* Required for solid icons */
    color: #2a2347;
    position: absolute;
    left: 0;
    top: 5px; /* Adjust for vertical alignment */
    font-size: 1.2rem;
}

/* Ensure the body tag gets the class for scoping these styles if needed, or use a more specific parent */
body.vision-mission-page {
    background-color: #f8f9fa; /* A light background for the page */
}

#gallery-items-container .img-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
} 
/* Common Styles */
        .floating-container {
            position: fixed;
            right: 20px;
            bottom: 80px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
 
        .floating-contact-btn, .floating-apply-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: white;
            font-family: Arial, sans-serif;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            animation: floating-pulse 2s infinite;
        }
 
        .floating-contact-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
        }
 
        .floating-contact-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
            color: white;
            text-decoration: none;
        }
 
        .floating-contact-btn i {
            font-size: 24px;
            animation: floating-shake 1s ease-in-out infinite alternate;
        }
 
        .floating-contact-btn:hover i {
            animation: none;
            transform: rotate(15deg);
        }
 
        /* Button Colors */
        .floating-phone-btn {
            background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        }
 
        .floating-phone-btn:hover {
            background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
        }
 
        .floating-whatsapp-btn {
            background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        }
 
        .floating-whatsapp-btn:hover {
            background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
        }
 
        /* Apply Now Button */
        .floating-apply-btn {
            position: fixed;
            left: 0;
            top: 50%;
            transform: translateY(-50%) translateX(15px) rotate(-90deg);
            transform-origin: left center;
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
            padding: 15px 30px;
            border-radius: 25px;
            font-size: 16px;
            z-index: 9998;
            white-space: nowrap;
        }
 
        .floating-apply-btn:hover {
            background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
            transform: translateY(-50%) translateX(15px) rotate(-90deg) scale(1.05);
            color: white;
            text-decoration: none;
        }
 
        .floating-apply-btn i {
            margin-left: 8px;
        }
 
        /* Tooltips */
        .floating-phone-btn::before {
            content: "Call Us: +91-9289756796";
        }
 
        .floating-whatsapp-btn::before {
            content: "WhatsApp: +91-9289756796";
        }
 
        .floating-contact-btn::before {
            position: absolute;
            right: 70px;
            top: 50%;
            transform: translateY(-50%);
            background: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 14px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            pointer-events: none;
        }
 
        .floating-contact-btn::after {
            content: "";
            position: absolute;
            right: 60px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-left: 8px solid #333;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
 
        .floating-contact-btn:hover::before,
        .floating-contact-btn:hover::after {
            opacity: 1;
            visibility: visible;
        }
 
        /* Animations */
        @keyframes floating-pulse {
            0% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7); }
            70% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(37, 211, 102, 0); }
            100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0); }
        }
 
        @keyframes floating-shake {
            0% { transform: rotate(-5deg); }
            100% { transform: rotate(5deg); }
        }
 
        /* Mobile Bottom Bar */
        .floating-bottom-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
            z-index: 9999;
            display: none;
        }
 
        .floating-bottom-left, .floating-phone-dropdown {
            flex: 1;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: white;
            font-family: Arial, sans-serif;
            font-weight: bold;
            font-size: 16px;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }
 
        .floating-bottom-left {
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        }
 
        .floating-bottom-left:hover {
            background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
            color: white;
            text-decoration: none;
        }
 
        .floating-bottom-left i {
            margin-right: 8px;
            font-size: 18px;
        }
 
        .floating-bottom-right {
            flex: 1;
            height: 100%;
            position: relative;
        }
 
        .floating-phone-dropdown {
            background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
            width: 100%;
            padding: 0;
        }
 
        .floating-phone-dropdown:hover {
            background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
        }
 
        .floating-phone-dropdown i {
            margin-right: 8px;
            font-size: 18px;
        }
 
        .floating-dropdown-menu {
            position: absolute;
            bottom: 100%;
            right: 0;
            background: white;
            border-radius: 8px 8px 0 0;
            box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
            min-width: 200px;
            display: none;
            z-index: 10000;
        }
 
        .floating-dropdown-menu.floating-show {
            display: block;
        }
 
        .floating-dropdown-item {
            display: block;
            padding: 12px 16px;
            color: #333;
            text-decoration: none;
            font-family: Arial, sans-serif;
            font-size: 14px;
            border-bottom: 1px solid #eee;
            transition: all 0.3s ease;
        }
 
        .floating-dropdown-item:hover {
            background: #f8f9fa;
            color: #007bff;
            text-decoration: none;
        }
 
        .floating-dropdown-item:last-child {
            border-bottom: none;
        }
 
        .floating-dropdown-item i {
            margin-right: 10px;
            width: 16px;
            text-align: center;
        }
 
        /* Responsive */
        @media (max-width: 768px) {
            .floating-container {
                right: 15px;
                bottom: 70px;
            }
 
            .floating-contact-btn {
                width: 55px;
                height: 55px;
            }
 
            .floating-contact-btn i {
                font-size: 22px;
            }
 
            .floating-contact-btn::before {
                font-size: 12px;
                padding: 6px 10px;
                right: 65px;
            }
 
            .floating-phone-btn::before {
                content: "Call Us";
            }
 
            .floating-whatsapp-btn::before {
                content: "WhatsApp";
            }
 
            .floating-contact-btn::after {
                right: 55px;
            }
 
            .floating-apply-btn {
                transform: translateY(-50%) translateX(12px) rotate(-90deg);
                font-size: 14px;
                padding: 12px 25px;
            }
           
            .floating-apply-btn:hover {
                transform: translateY(-50%) translateX(12px) rotate(-90deg) scale(1.05);
            }
        }
 
        @media (max-width: 480px) {
            /* Hide floating elements */
            .floating-container,
            .floating-apply-btn {
                display: none;
            }
 
            /* Show bottom bar */
            .floating-bottom-bar {
                display: flex;
            }
 
            .floating-contact-btn::before,
            .floating-contact-btn::after {
                display: none;
            }
        }
		:root {
            --primary-color: #C00101;
        }
       
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.25rem rgba(192, 1, 1, 0.25);
        }
        .btn-submit {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            color: #fff;
            padding: 0.75rem 1.5rem;
            font-weight: 500;
        }
        .btn-submit:hover {
            background-color: #a00101;
            border-color: #900101;
        }