:root {
    --primary-color: #1e3799;
    --secondary-color: #0c2461;
    --accent-color: #1e3799;
    --text-color: #1f2937;
    --light-bg: #f8fafc;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    padding-top: 76px;
}

/* Enhanced Navbar Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 45px;
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(37, 99, 235, 0.1);
}

/* Hero Section */
.hero-section {
    background: white;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
}

/* Slider styles for all devices */
#slider, #mobile-slider {
    position: relative;
    width: 100%;
    z-index: 1;
    border-radius: 0;
    overflow: hidden;
}

.carousel-item {
    height: 100%;
   
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.carousel-caption {
    bottom: auto !important;
    left: 50%;
    right: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.carousel-caption .bg-dark {
    display: inline-block;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .carousel-caption h1 {
        font-size: 3rem;
    }
}

/* Background Box Styles */
.background-box {
    background: rgba(23, 23, 23, 0.6);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    max-width: 80%;
    margin: 0 auto;
    color: white;
    width: 100%;
    box-shadow: 0px 4px 10px rgba(28, 28, 28, 0.3);
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.background-box h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1;
    font-weight: 600;
}

.background-box p {
    font-size: 1rem;
    line-height: 1;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
    z-index: 4;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: contain;
    width: 30px;
    height: 30px;
}

/* Main Content Section */
.main-content {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content-container {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

.main-heading {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.main-heading:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498DB, #2980B9);
}

.main-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

/* Fade-In Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease-in forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-container:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Responsive Breakpoints */
/* Extra Large Devices */
@media (min-width: 1200px) {
    .carousel-caption h1 {
        font-size: 3rem;
    }
    
    .carousel-caption p {
        font-size: 1.5rem;
    }
    
    .main-heading {
        font-size: 3rem;
    }
    
    .main-description {
        font-size: 1.25rem;
    }
}

/* Large Devices */
@media (max-width: 1199px) {
    .carousel-item {
        height: 60vh;
    }
    
    .background-box h1 {
        font-size: 2.2rem;
    }
    
    .background-box p {
        font-size: 1.1rem;
    }
}

/* Medium Devices */
@media (max-width: 992px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .carousel-item {
        height: 60vh;
    }
    
    .background-box {
        padding: 1.25rem 1.5rem;
        max-width: 90%;
    }
    
    .background-box h1 {
        font-size: 2rem;
    }
    
    .background-box p {
        font-size: 1rem;
    }
    
    .main-heading {
        font-size: 2.2rem;
    }
}

/* Small Devices */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding-bottom: 2rem;
    }
    
    .carousel-item {
        height: 60vh;
    }
    
    .background-box {
        padding: 1rem;
        max-width: 90%;
        padding-bottom: 2rem;
    }
    
    .background-box h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .background-box p {
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 3rem 1.5rem;
    }
    
    .main-heading {
        font-size: 1.8rem;
    }
    
    .main-description {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .carousel-item {
        height: 70vh;
    }
    
    .carousel-caption {
        padding: 0.75rem;
        max-width: 95%;
    }
    
    .background-box {
        padding: 0.75rem;
        max-width: 95%;
    }
    
    .background-box h1 {
        font-size: 1.25rem;
        margin-bottom: 0.4rem;
    }
    
    .background-box p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .main-heading {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .main-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
}

/* Very Small Devices */
@media (max-width: 375px) {
    .hero-section {
        min-height: 35vh;
    }
    
    
    .background-box h1 {
        font-size: 1rem;
    }
    
    .background-box p {
        font-size: 0.7rem;
    }
    
    .main-heading {
        font-size: 1.3rem;
    }
    
    .main-description {
        font-size: 0.8rem;
    }
}

/* Enhanced Card Styles */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* .card-img-top {
    height: 200px;
    object-fit: cover;
} */

.card-img-top {
    width: 100%;
    height: auto; /* Maintain the aspect ratio */
    object-fit: cover; /* Ensures the image covers the entire area */
}


/* Stats Section */
.stats-section {
    background: linear-gradient(120deg, #f3f4f6, #ffffff);
    /* padding: 2rem 0; Reduce padding for smaller section */
}

.stat-item {
    text-align: center;
    padding: 1.5rem; /* Reduce padding for smaller items */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.stat-wrapper {
    background: #ffffff;
    border-radius: 10px; /* Reduce corner radius */
    padding: 1.5rem; /* Reduce padding for compact layout */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-wrapper:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 150%; /* Smaller decorative gradient */
    height: 150%;
    background: linear-gradient(120deg, #7f8283, #97999b);
    border-radius: 50%;
    transform: translate(-50%, -80%);
    opacity: 0.1;
    z-index: 0;
}

.stat-icon {
    font-size: 2rem; /* Reduce icon size */
    color: #9e9e9f;
    margin-bottom: 0.75rem;
    z-index: 1;
    position: relative;
}

.stat-number {
    font-size: 2rem; /* Reduce number font size */
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    z-index: 1;
    position: relative;
}

.stat-label {
    color: #666;
    font-weight: 500;
    z-index: 1;
    position: relative;
    font-size: 0.9rem; /* Slightly smaller font for labels */
}


/* Research Categories */
.category-badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.875rem;
    margin: 0.25rem;
    display: inline-block;
}

/* Advisory Forum Enhancement */
.advisor-card {
    background: #F1F1F2;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.advisor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

#advisor-image {
        width: 100%;
        height: 100%;
        border-radius: 10px;
        object-fit: fill;
        size: auto;
        margin: 0 auto 1rem;
        border: none;
}

/* Newsletter Section */
/* Newsletter Section */
.newsletter-section {
    background:#fbfbec;
    padding: 2rem 0;
    color: #202021;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Mobile-specific background image */
@media (max-width: 768px) {
    .newsletter-section {
        background:#fbfbec;
    }
}


.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    border: 2 px solid rgb(27, 26, 26);
    width: 100%;
}

/* Contact Section */
.contact-section {
    padding: 2rem 0; /* Reduced padding for a smaller section */
    background-color: #F1F1F2; /* Light blue shade for the background */
    max-width: 900px; /* Restricts the width */
    margin: 0 auto; /* Centers the section */
}

.contact-info {
    padding: 1.5rem; /* Reduced padding */
    background-color: #F1F1F2; /* Matches the light blue background */
    border-radius: 0.8rem; /* Slightly reduced border-radius */
    height: auto; /* Adjusted height to fit content */
    max-width: 600px; /* Restricts the width of the info box */
    margin: 0 auto; /* Centers the info box */
}

.contact-form .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    width: 90%; /* Reduces the width of form controls */
    margin-left: auto;
    margin-right: auto;
}

/* Footer Enhancement
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-heading {
    color: #f8fafc;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: white;
} */
.footer {
    /* background-color: #1e3799; */
    background-image: url('../resources/Footer\ Update_final.jpg');
    width: 100%;
    margin: 0;
    padding: 0;
}

.footer-column {
    padding: 20px;
    color: white;
}

.footer-column h5 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: #f0f0f0;
}

.copyright-section {
    background-color: #0c2461;
    padding: 20px 0;
    margin: 0;
}

.copyright-section p {
    margin: 0;
    font-size: 14px;
    color: #a8b2d1;
}

.copyright-section a {
    color: #a8b2d1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright-section a:hover {
    color: white;
}

.row {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-column {
        width: 50%; /* Two columns on smaller screens */
    }
}


/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
    .footer {
        grid-template-columns: repeat(2, 1fr); /* Two columns on smaller screens */
    }

    .footer-column {
        padding: 10px;
    }

    .footer-column h5 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .copyright-section {
        text-align: center;
    }
}

/* Loading Animation */
.loader {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }

    .stat-item {
        margin-bottom: 1rem;
    }

    .advisor-card {
        margin-bottom: 1rem;
    }
}

/* .logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '📚';
    font-size: 2rem;
} */



.d5{
    padding-left: 25%;
    justify-content: center;
    align-items: center;
}


.submit-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
}

/* Keyframes for fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-container:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Background box fade-in */
.background-box {
    opacity: 0; /* Initially hidden */
    animation: fadeIn 1s ease-in forwards; /* Fade-in animation for background */
    animation-delay: 0.5s;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 2rem;
    border-radius: 10px;
    display: inline-block;
    width: 1000px;
}

/* Text animation */
.background-box h1,
.background-box p {
    opacity: 0; /* Initially hidden */
    animation: fadeIn 1s ease-in forwards;
}

/* Text-specific timing */
.background-box h1 {
    animation-delay: 1s;
}

.background-box p {
    animation-delay: 1.2s;
}

/* Fine-tune animation timing for each slide */
.carousel-item:nth-child(1) .background-box {
    animation-delay: 0.5s; /* Delay for the first slide */
}

.carousel-item:nth-child(2) .background-box {
    animation-delay: 1s;
}

.carousel-item:nth-child(3) .background-box {
    animation-delay: 1.5s;
}

.logo {
    font-size: auto;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: auto;
    font-size: 25px;
}

.logo img {
    height: 60px; /* Adjust the size as needed */
    width: auto;
    border-radius: 10px; /* Add curves to the sides */
}

/* Banner section */
.banner-section {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Banner wrapper */
.banner-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Banner image */
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* iOS viewport height fix */
@supports (-webkit-touch-callout: none) {
    .banner-section {
        height: -webkit-fill-available;
    }
}

/* Mobile slider caption adjustment */
@media (max-width: 768px) {
    #mobile-slider .carousel-caption {
        position: absolute;
        bottom: 20%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 500px;
        border-radius: 10px;
        padding: 15px;
        background:none;
    }
}

/* Additional responsive adjustments */
@media screen and (max-height: 500px) {
    .banner {
        min-height: 500px; /* Minimum height for very short screens */
    }
}

/* Ensure proper scaling on different devices */
@supports (-webkit-touch-callout: none) {
    /* iOS devices */
    .banner {
        height: -webkit-fill-available;
    }
}
.sub-button {
    background: rgb(244, 60, 10);
    color: white;
    border-radius: 20px;
    padding: 0.6rem 2rem; /* Adjusted padding for better proportions */
    border: 1px solid rgb(244, 60, 10);
    width: auto;
    height: auto;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap; /* Prevents text wrapping */
}

/* Hover effect */
.sub-button:hover {
    background: orange;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds depth */
}

/* Active effect (click) */
.sub-button:active {
    transform: scale(0.98);
}

/* Focus effect for accessibility */
.sub-button:focus {
    outline: 3px solid rgba(244, 60, 10, 0.5);
    outline-offset: 3px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .sub-button {
        padding: 0.5rem 1.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .sub-button {
        padding: 0.45rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .sub-button {
        padding: 0.4rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 12px;
        width: 100%; /* Makes it full-width on small screens */
    }
}

.main-content {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-container {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.main-heading {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #2C3E50;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.main-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #505050;
    line-height: 1.8;
    text-align: center;
    margin: 0 auto 1rem;
    max-width: 800px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.2px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 2rem 1rem;
        min-height: 40vh;
    }
    
    .content-wrapper {
        padding: 0 15px;
    }
    
    .main-description {
        text-align: justify;
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 1.5rem 1rem;
        min-height: 30vh;
    }
    
    .main-description {
        text-align: justify;
    }
}

.paragraph-large {
    font-size: 17px; /* Adjust as needed */
    font-family: 'Inter', sans-serif;
}

.paragraph-small {
    font-size: 16px; /* Adjust as needed */
    font-family: 'Inter', sans-serif;
}
