:root {
    --bjp-saffron: #FF9933;
    --bjp-green: #138808;
    --bjp-blue: #000080;
    --light-bg: #fdf5e6;
}

body {
    font-family: 'Georgia', serif;
    background-color: #fafafa;
    color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
}

/* Navbar */
.navbar-custom {
    background: linear-gradient(to right, var(--bjp-saffron), #ffb366);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand {
    color: white !important;
    font-weight: 800;
    /* Extra Bold */
    font-size: 1.6rem;
    /* Larger size */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* Shadow for focus */
    letter-spacing: 0.5px;
}

.navbar-custom .nav-link {
    color: white !important;
    font-weight: 600;
}

.navbar-custom .nav-link:hover {
    color: var(--bjp-blue) !important;
}

/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-img-container {
    position: relative;
    display: inline-block;
    /* Unique Tricolor Border Effect */
    border: 5px solid white;
    box-shadow:
        0 0 0 4px var(--bjp-saffron),
        0 0 0 8px white,
        0 0 0 12px var(--bjp-green),
        0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.hero-img-container:hover {
    transform: rotate(1deg) scale(1.02);
}

.hero-text {
    z-index: 2;
}

.hero-subtitle {
    color: var(--bjp-saffron);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: var(--bjp-saffron);
    color: white;
    transform: translateY(-5px);
}

.feature-card:hover .text-saffron {
    color: white !important;
}

.feature-card:hover p {
    color: white !important;
}

/* Buttons */
.btn-green {
    background-color: var(--bjp-green);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-green:hover {
    background-color: #0e6b05;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #222;
    color: white;
    padding: 40px 0;
    border-top: 5px solid var(--bjp-saffron);
}

.text-saffron {
    color: var(--bjp-saffron);
}

/* Flipbox Gallery Styles */
.flip-box {
    background-color: transparent;
    perspective: 1000px;
    height: 350px;
    /* Fixed height for consistency */
    width: 100%;
    margin-bottom: 20px;
}

.flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.flip-box:hover .flip-box-inner {
    transform: rotateY(180deg);
}

.flip-box-front,
.flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.flip-box-front {
    background-color: #fff;
}

.flip-box-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-box-back {
    background: linear-gradient(135deg, var(--bjp-saffron), #ffb366);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.flip-box-back h4 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}


/* About Page Styles */
.about-hero {
    background: linear-gradient(rgba(255, 153, 51, 0.1), rgba(255, 153, 51, 0.05));
    padding: 80px 0;
}

.vision-card {
    transition: all 0.3s ease;
    border-left: 5px solid var(--bjp-saffron);
}

.vision-card:hover {
    transform: translateY(-5px);
    background-color: var(--bjp-saffron) !important;
    color: white;
}

.vision-card:hover .text-muted {
    color: white !important;
}



.certificate-img {
    max-width: 100%;
    height: auto;
    border: 2px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.certificate-img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}