/* Logo Styling for Navbar */
.default-header .navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 20px;
}

.default-header .navbar-brand img {
    max-width: 200px;
    height: auto;
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 991px) {
    .default-header .navbar-brand img {
        max-width: 150px;
        max-height: 50px;
    }
}

@media (max-width: 767px) {
    .default-header .navbar-brand img {
        max-width: 120px;
        max-height: 40px;
    }
}

/* Footer Logo Styling */
.footer .navbar-brand img {
    max-width: 100px !important;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Team Page Styling - Forward Foundation Achievements Style */
.achievement-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.team-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.team-card .card-body {
    padding: 2rem;
}

.team-card img {
    border: 3px solid #f0f0f0;
}

/* Certificates Section Styling */
.certificate-card {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.certificate-image {
    overflow: hidden;
    border-radius: 8px;
}

.certificate-img {
    transition: transform 0.3s ease;
}

.certificate-card:hover .certificate-img {
    transform: scale(1.05);
}

.certificate-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.certificate-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Content Area Styling for Dynamic Content */
.content-area {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #1a1a1a;
    text-align: justify;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.content-area p {
    margin-bottom: 1.3rem;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #1a1a1a;
    font-weight: 400;
    white-space: pre-wrap; /* Preserve line breaks and whitespace */
}

/* Ensure line breaks are displayed */
.content-area br {
    display: block;
    content: "";
    margin-top: 0.5em;
}

.content-area h1,
.content-area h2,
.content-area h3,
.content-area h4,
.content-area h5,
.content-area h6 {
    margin-top: 1.8rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: #0d47a1;
    line-height: 1.4;
}

.content-area h1 {
    font-size: 2.5rem;
    color: #1565c0;
    border-bottom: 3px solid #1976d2;
    padding-bottom: 0.5rem;
}

.content-area h2 {
    font-size: 2rem;
    color: #1976d2;
}

.content-area h3 {
    font-size: 1.75rem;
    color: #1e88e5;
}

.content-area h4 {
    font-size: 1.5rem;
    color: #2196f3;
}

.content-area h5 {
    font-size: 1.25rem;
    color: #42a5f5;
}

.content-area h6 {
    font-size: 1.1rem;
    color: #64b5f6;
}

.content-area ul,
.content-area ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.content-area li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.content-area a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #1976d2;
    transition: all 0.3s ease;
}

.content-area a:hover {
    color: #0d47a1;
    border-bottom-color: #0d47a1;
    text-decoration: none;
    border-bottom-width: 2px;
}

.content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.content-area blockquote {
    border-left: 4px solid #1976d2;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #424242;
    background-color: #f5f5f5;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 1.05rem;
}

.content-area strong,
.content-area b {
    font-weight: 700;
    color: #0d47a1;
}

.content-area em,
.content-area i {
    font-style: italic;
    color: #1565c0;
}

.content-area u {
    text-decoration: underline;
    text-decoration-color: #1976d2;
}

/* Preserve Summernote formatting */
.content-area span[style] {
    display: inline;
}

.content-area p[style] {
    display: block;
}

.content-area div[style] {
    display: block;
}

/* Color support from Summernote */
.content-area *[style*="color"] {
    /* Preserve inline colors from editor */
}

.content-area *[style*="background-color"] {
    /* Preserve background colors from editor */
    padding: 2px 4px;
    border-radius: 3px;
}

/* Hindi Content - LTR Support (Hindi text displays left-to-right) */
.content-area[dir="ltr"] {
    text-align: left;
    direction: ltr;
}

/* Content Section Styling */
.content-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Enhanced formatting support */
.content-area table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid #ddd;
}

.content-area table td,
.content-area table th {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.content-area table th {
    background-color: #1976d2;
    color: white;
    font-weight: 600;
}

.content-area code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d32f2f;
}

.content-area pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    border-left: 4px solid #1976d2;
    margin: 1.5rem 0;
}

.content-area pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
}

.content-area hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2rem 0;
}

/* Responsive Content */
@media (max-width: 768px) {
    .content-area {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .content-area p {
        margin-bottom: 1rem;
    }
    
    .content-area h1,
    .content-area h2,
    .content-area h3 {
        font-size: 1.5rem;
    }
}

/* About Details Section Improvements */
.about_details {
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about_details h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d47a1;
    border-bottom: 3px solid #1976d2;
    padding-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .about_details {
        padding: 1.5rem;
    }
    
    .about_details h2 {
        font-size: 1.75rem;
    }
}

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Hover Effects */
.card, .team-card, .certificate-card {
    transition: all 0.3s ease;
}

.card:hover, .team-card:hover, .certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern Button Styles */
.primary-btn, .primary-btn2 {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.primary-btn::before, .primary-btn2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.primary-btn:hover::before, .primary-btn2:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1976d2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Payment Method Cards */
.payment-method-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.payment-method-card:hover {
    border-color: #1976d2;
    background-color: #f0f7ff;
    transform: translateY(-2px);
}

.payment-method-card.active {
    border-color: #1976d2;
    background-color: #e3f2fd;
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hero Section - Forward Foundation Style */
.home-banner-area {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.home-banner-area .banner-content h1 {
    animation: fadeInUp 1s ease;
}

.home-banner-area .banner-content h2 {
    animation: fadeInUp 1.2s ease;
}

.home-banner-area .banner-content p {
    animation: fadeInUp 1.4s ease;
}

.home-banner-area .hero-buttons {
    animation: fadeInUp 1.6s ease;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.hero-buttons .primary-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-buttons .primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Impact Metrics Section - Forward Foundation Style */
.impact-metrics-area {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.impact-metrics-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Restore Original Color Scheme - Keep Forward Foundation style but use original working colors */
.primary-btn {
    background: #1976d2;
    border-color: #1976d2;
    color: #fff;
}

.primary-btn:hover {
    background: #1565c0;
    border-color: #1565c0;
    color: #fff;
}

.primary-btn.orange {
    background: #FF6600;
    border-color: #FF6600;
}

.primary-btn.orange:hover {
    background: #e55a00;
    border-color: #e55a00;
}

.metric-card {
    padding: 30px 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.metric-card:hover {
    transform: translateY(-10px);
}

.metric-icon {
    margin-bottom: 20px;
}

.metric-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

/* Scroll Animation States */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.metric-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.metric-card.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for staggered animations */
.metric-card[data-animation-delay="200"] {
    transition-delay: 0.2s;
}

.metric-card[data-animation-delay="400"] {
    transition-delay: 0.4s;
}

.metric-card[data-animation-delay="600"] {
    transition-delay: 0.6s;
}

/* Events Carousel Improvements */
.events-carousel .owl-item {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.events-carousel .owl-item.active {
    opacity: 1;
}

/* Contact Page Enhancements */
.contact-form-field {
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.contact-form-field:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
    transform: translateY(-2px);
}

/* Map Container */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
}

/* Social Media Icons Animation */
.social-icon {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    background: #1976d2;
    color: #fff;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-slide-item h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-slide-item h4 {
        font-size: 1.1rem !important;
    }
    
    .metric-number {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .primary-btn,
    .hero-buttons .primary-btn-outline {
        width: 100%;
        text-align: center;
    }
}

/* Banner Content Styling - White Text for Banner Area */
.banner-area .content-area {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-area .content-area p {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-area .content-area h1,
.banner-area .content-area h2,
.banner-area .content-area h3,
.banner-area .content-area h4,
.banner-area .content-area h5,
.banner-area .content-area h6 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-area .content-area a {
    color: #ffffff !important;
    border-bottom-color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-area .content-area a:hover {
    color: #e0e0e0 !important;
    border-bottom-color: #e0e0e0;
}

.banner-area .content-area strong,
.banner-area .content-area b {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-area .content-area em,
.banner-area .content-area i {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-area .content-area ul,
.banner-area .content-area ol {
    color: #ffffff !important;
}

.banner-area .content-area li {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-area .content-area blockquote {
    border-left-color: #ffffff;
    background-color: rgba(255,255,255,0.1);
    color: #ffffff !important;
}

.banner-content-text {
    max-width: 100%;
}

