/* Custom Styles for Bhartiya Seva Educational Sangthan Trust */

:root {
    --primary-green: #15803d; /* Professional Green */
    --primary-saffron: #f97316; /* Saffron/Orange */
    --primary-blue: #1e3a8a; /* Deep Blue */
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-green);
    border-bottom: 2px solid var(--primary-saffron);
}

/* Navbar */
.main-nav {
    background-color: var(--primary-blue);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
}

.main-nav .nav-link:hover, .main-nav .nav-link.active {
    color: #fff !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.main-nav .dropdown-menu {
    border: none;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-saffron);
}

.main-nav .dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-blue);
}

/* Buttons in nav */
.donation-btn {
    background-color: var(--primary-saffron);
    color: white !important;
    border-radius: 5px;
    margin-left: 10px;
}

.join-btn {
    background-color: var(--primary-green);
    color: white !important;
    border-radius: 5px;
    margin-left: 10px;
}

/* Section Headings */
.section-title {
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-saffron);
}

/* Notice Marquee */
.notice-section {
    background-color: var(--primary-green);
    color: white;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.notice-label {
    background-color: var(--primary-saffron);
    padding: 5px 15px;
    font-weight: bold;
    border-radius: 3px;
    margin-right: 15px;
    white-space: nowrap;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-header {
    background-color: var(--primary-green);
    color: white;
    font-weight: bold;
    border-bottom: none;
}

/* Footer */
.footer {
    background-color: #111827;
    color: white;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: var(--primary-saffron);
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-saffron);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

/* Responsive fixes */
@media (max-width: 991.98px) {
    .donation-btn, .join-btn {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
    }
}

/* Global Overflow Fix */
.container, .container-fluid {
    overflow-x: hidden;
}

/* Fluid Typography */
.main-title { font-size: clamp(1.2rem, 3vw, 2.2rem); }
.sub-title { font-size: clamp(0.9rem, 2vw, 1.5rem); }
.reg-badge { font-size: clamp(0.6rem, 1.2vw, 1rem); }

@media (max-width: 768px) {
    .notice-marquee { font-size: 0.9rem; }
    #heroCarousel img { height: 40vh !important; }
    .section-title { font-size: 1.5rem !important; }
}

/* Fix for horizontal scroll caused by rows outside containers */
body {
    overflow-x: hidden;
    width: 100%;
}
.row {
    margin-left: 0;
    margin-right: 0;
}
.row > [class^="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}
