/* Global Styles */
:root {
    --primary-color: #8B0000;
    --secondary-color: #640000;
    --accent-color: #FFD700;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --header-bg: #8B0000;
    --nav-bg: #000033;
    --top-bar-bg: #000033;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(to right, var(--nav-bg), var(--primary-color));
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-contact-info {
    display: flex;
    gap: 20px;
}

.top-contact-item {
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-contact-item i {
    color: var(--accent-color);
}

.top-right-links {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.top-right-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.top-right-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.search-container {
    position: relative;
    margin-left: 15px;
}

.search-input {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 150px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.5);
    width: 250px;
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #003366;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
}

.search-result-item {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: var(--light-bg);
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #666;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--header-bg) 0%, #660000 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 2;
}

.logo-wrapper {
    flex-shrink: 0;
}

.logo-container {
    width: 150px; /* Increased by 20% from 125px */
    height: 150px; /* Increased by 20% from 125px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.school-info {
    flex-grow: 1;
}

.school-name {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(120deg, var(--accent-color) 0%, #FFF 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    white-space: nowrap;
}

.school-location {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(120deg, var(--accent-color) 0%, #FFF 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sanskrit-slogan {
    font-family: 'Tiro Devanagari Sanskrit', serif;
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: #FFA500;
    text-align: left;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.affiliation {
    color: #FFF;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    flex: 1;
}

.govt-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.govt-logo {
    width: 80px;
    height: auto;
}

.funding-info {
    color: #fff;
    font-size: 0.85rem;
    text-align: right;
    opacity: 0.9;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

/* Navigation */
.main-nav {
    background: linear-gradient(to right, var(--nav-bg), #000066);
    padding: 0;
    border-bottom: 3px solid var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-nav {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.navbar-nav > li {
    position: relative;
}

.navbar-nav > li > a {
    color: white;
    padding: 1rem 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: block;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menus */
.sub-menu-1,
.sub-menu-2 {
    position: absolute;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    display: none;
    z-index: 1000;
}

.sub-menu-1 {
    top: 100%;
    left: 0;
}

.sub-menu-2 {
    top: 0;
    left: 100%;
}

.sub-menu-1 ul,
.sub-menu-2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-menu-1 li a,
.sub-menu-2 li a {
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.sub-menu-1 li a:hover,
.sub-menu-2 li a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 2rem;
}

.navbar-nav > li:hover .sub-menu-1,
.sub-menu-1 li:hover .sub-menu-2 {
    display: block;
}

/* Marquee Section */
.marquee-section {
    background: #f8f9fa;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.marquee-content {
    background: white;
    padding: 0.3rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.marquee-items {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
}

.marquee-items a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.marquee-items a:hover {
    color: var(--primary-color);
}

.marquee-items i {
    color: var(--primary-color);
}

.marquee-divider {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
}

/* Hero Section */
.hero-section {
    margin-bottom: 2rem;
}

.carousel-item {
    height: 600px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(5px);
}

/* Principal Section */
.principal-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.principal-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.message-box, .pillar-box {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.principal-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 3px solid var(--primary-color);
}

.principal-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.principal-name {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.message-content {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
}

.pillar-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pillar-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.pillar-content {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
}

.pillar-content ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.pillar-content li {
    margin-bottom: 0.5rem;
}

/* Features Section */
.feature-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 2rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 1rem 0;
    font-weight: 600;
}

/* News & Updates */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--nav-bg) 0%, #000066 100%) !important;
    padding: 4rem 0 2rem;
}

footer h5 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 1rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: var(--accent-color) !important;
    padding-left: 0.5rem;
}

.social-links a {
    font-size: 1.4rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 1;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

/* Vertical Contact Buttons */
.vertical-contact-buttons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    padding-right: 10px;
}

.contact-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.whatsapp-button {
    background-color: #25D366;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

.call-button {
    background-color: var(--primary-color);
}

.call-button:hover {
    background-color: var(--secondary-color);
}

/* Responsive Media Queries */
@media (max-width: 1366px) {
    .school-name {
        font-size: 1.8rem;
    }

    .sanskrit-slogan {
        font-size: 1.2rem;
    }

    .logo-container {
        width: 100px;
        height: 100px;
    }

    .govt-logo {
        width: 60px;
    }

    .navbar-nav > li > a {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 1280px) {
    .header-content {
        gap: 1rem;
    }

    .school-name {
        font-size: 1.6rem;
    }
	.school-location {
		font-size: 1.1rem;
	}

    .sanskrit-slogan {
        font-size: 1.1rem;
    }

    .funding-info {
        font-size: 0.8rem;
    }

    .navbar-nav > li > a {
        padding: 0.8rem 0.8rem;
        font-size: 0.75rem;
    }

    .top-contact-info {
        gap: 10px;
    }

    .top-contact-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .left-section {
        flex-direction: column;
        gap: 1rem;
    }

    .right-section {
        align-items: center;
    }

    .school-name {
        font-size: 1.5rem;
        text-align: center;
    }
	.school-location {
		font-size: 1.0rem;
	}

    .sanskrit-slogan {
        text-align: center;
    }

    .affiliation {
        text-align: center;
    }

    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-nav > li > a {
        padding: 0.6rem 0.6rem;
        font-size: 0.7rem;
    }

    .sub-menu-1 {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    .carousel-item {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 5px 0;
    }

    .top-contact-info {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

    .top-right-links {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .search-container {
        margin: 5px 0;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .header-content {
        padding: 0.5rem;
    }

    .school-name {
        font-size: 1.3rem;
    }
	.school-location {
		font-size: 1.0rem;
	}

    .sanskrit-slogan {
        font-size: 1rem;
    }

    .navbar-toggler {
        display: block;
        margin: 10px auto;
    }

    .navbar-collapse {
        background: var(--nav-bg);
    }

    .navbar-nav {
        padding: 10px 0;
    }

    .navbar-nav > li {
        width: 100%;
        text-align: center;
    }

    .navbar-nav > li > a {
        padding: 10px;
        font-size: 0.9rem;
    }

    .sub-menu-1, .sub-menu-2 {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
    }

    .carousel-item {
        height: 300px;
    }

    .carousel-caption {
        padding: 1rem;
    }

    .carousel-caption h2 {
        font-size: 1.2rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }

    .vertical-contact-buttons {
        right: 0;
        padding-right: 5px;
    }

    .contact-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .school-name {
        font-size: 1.2rem;
    }
	.school-location {
		font-size: 1.0rem;
	}

    .sanskrit-slogan {
        font-size: 0.9rem;
    }

    .logo-container {
        width: 80px;
        height: 80px;
    }

    .govt-logo {
        width: 40px;
    }

    .carousel-item {
        height: 250px;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-card i {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Fixed Navigation */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Gallery Admin Buttons */
.admin-only {
    display: none;
}

/* Education Theme Section */
.education-theme-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-color);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.education-theme-section .card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.education-theme-section .card-image {
    position: relative;
    overflow: hidden;
}

.education-theme-section .card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.education-theme-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.5) 0%, rgba(102, 0, 0, 0.5) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.education-theme-section .overlay i {
    background: linear-gradient(120deg, var(--accent-color) 0%, #FFF 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.education-theme-section .card:hover .overlay {
    opacity: 1;
}

.education-theme-section .card:hover .overlay i {
    transform: translateY(0);
}

.education-theme-section .card:hover .card-image img {
    transform: scale(1.1);
}

.education-theme-section .card-body {
    padding: 2rem;
    background: white;
}

.education-theme-section .card-body h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.education-theme-section .card-body p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.education-theme-section .btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.education-theme-section .btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}