/* ==========================================================================
   Custom Theme Styles
   ========================================================================== */

/* Container Bootstrap Override */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

@media (max-width: 1200px) {
    .container {
        max-width: 970px;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 750px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 12px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
}

/* Row/Column Utilities */
.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    width: 100%;
}

.row > * {
    width: 100%;
}

/* Bootstrap-like column classes */
.col-12 { grid-column: span 12; }
.col-11 { grid-column: span 11; }
.col-10 { grid-column: span 10; }
.col-9 { grid-column: span 9; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }
.col-1 { grid-column: span 1; }

/* Tablet landscape and below */
@media (max-width: 1024px) {
    .row {
        gap: 25px;
    }
    
    .col-lg-12 { grid-column: span 12; }
    .col-lg-11 { grid-column: span 11; }
    .col-lg-10 { grid-column: span 10; }
    .col-lg-9 { grid-column: span 9; }
    .col-lg-8 { grid-column: span 8; }
    .col-lg-7 { grid-column: span 7; }
    .col-lg-6 { grid-column: span 6; }
    .col-lg-5 { grid-column: span 5; }
    .col-lg-4 { grid-column: span 4; }
    .col-lg-3 { grid-column: span 3; }
    .col-lg-2 { grid-column: span 2; }
    .col-lg-1 { grid-column: span 1; }
}

/* Tablet portrait and below */
@media (max-width: 768px) {
    .row {
        gap: 20px;
    }
    
    .col-md-12 { grid-column: span 12; }
    .col-md-11 { grid-column: span 11; }
    .col-md-10 { grid-column: span 10; }
    .col-md-9 { grid-column: span 9; }
    .col-md-8 { grid-column: span 8; }
    .col-md-7 { grid-column: span 7; }
    .col-md-6 { grid-column: span 6; }
    .col-md-5 { grid-column: span 5; }
    .col-md-4 { grid-column: span 12; }
    .col-md-3 { grid-column: span 12; }
    .col-md-2 { grid-column: span 12; }
    .col-md-1 { grid-column: span 12; }
}

/* Mobile and below */
@media (max-width: 576px) {
    .row {
        gap: 15px;
    }
    
    .col-sm-12 { grid-column: span 12; }
    .col-sm-11 { grid-column: span 11; }
    .col-sm-10 { grid-column: span 10; }
    .col-sm-9 { grid-column: span 9; }
    .col-sm-8 { grid-column: span 8; }
    .col-sm-7 { grid-column: span 7; }
    .col-sm-6 { grid-column: span 6; }
    .col-sm-5 { grid-column: span 5; }
    .col-sm-4 { grid-column: span 12; }
    .col-sm-3 { grid-column: span 12; }
    .col-sm-2 { grid-column: span 12; }
    .col-sm-1 { grid-column: span 12; }
    
    /* Utility classes for mobile */
    .d-none { display: none !important; }
    .d-block { display: block !important; }
    .d-flex { display: flex !important; }
    .d-grid { display: grid !important; }
    .d-inline { display: inline !important; }
    .d-inline-block { display: inline-block !important; }
    .d-inline-flex { display: inline-flex !important; }
    
    .text-center-mobile { text-align: center; }
    .text-left-mobile { text-align: left; }
    .text-right-mobile { text-align: right; }
}

/* Extra small mobile */
@media (max-width: 360px) {
    .row {
        gap: 12px;
    }
}

.col-12 {
    grid-column: 1 / -1;
}

.col-md-4 {
    grid-column: span 1;
}

.col-md-6 {
    grid-column: span 2;
}

.col-lg-3 {
    grid-column: span 1;
}

.col-lg-8 {
    grid-column: span 2;
}

.col-lg-4 {
    grid-column: span 1;
}

.mb-4 {
    margin-bottom: 30px;
}

.mb-5 {
    margin-bottom: 50px;
}

/* Custom Post Type Styling */
.post-article,
.page-article {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-article ul,
.page-article ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.post-article li,
.page-article li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.post-article ol,
.page-article ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.post-article blockquote,
.page-article blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-light);
    font-style: italic;
}

.post-article code,
.page-article code {
    background: var(--background-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--secondary-color);
}

.post-article pre,
.page-article pre {
    background: var(--background-light);
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 15px;
}

/* Comment Section Styling */
.comment-list {
    list-style: none;
    margin: 30px 0;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.comment-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.comment-content {
    margin-left: 60px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: 10px;
}

.comment-body {
    background: var(--background-light);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.comment-body p {
    margin-bottom: 0;
}

.reply {
    margin-top: 15px;
}

.reply a {
    display: inline-block;
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.reply a:hover {
    background: var(--secondary-color);
    color: white;
}

/* Comment Form Styling */
.comment-form {
    margin-top: 40px;
    padding: 30px;
    background: var(--background-light);
    border-radius: 10px;
}

.comment-form-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.comment-form .form-submit {
    margin-top: 20px;
}

/* Bootstrap Grid Responsive */
@media (max-width: 768px) {
    .col-md-4 {
        grid-column: span 1;
    }

    .col-md-6 {
        grid-column: span 1;
    }

    .col-lg-8 {
        grid-column: span 1;
    }

    .col-lg-4 {
        grid-column: span 1;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Link Styling in Content */
.post-article a,
.page-article a,
.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.post-article a:hover,
.page-article a:hover,
.post-content a:hover {
    color: var(--secondary-color);
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

thead {
    background: var(--primary-color);
    color: white;
}

th,
td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

tbody tr:nth-child(even) {
    background: var(--background-light);
}

tbody tr:hover {
    background: rgba(26, 71, 179, 0.05);
}

/* Breadcrumb Styling */
.breadcrumb {
    background: var(--background-light);
    padding: 10px 0;
    margin-bottom: 20px;
    border-radius: 6px;
}

.breadcrumb-item {
    display: inline;
}

.breadcrumb-item::after {
    content: ' / ';
    margin: 0 8px;
    color: var(--text-light);
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 100px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state-text {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: var(--transition);
}

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

/* Text Utilities */
.text-uppercase {
    text-transform: uppercase;
}

.text-capitalize {
    text-transform: capitalize;
}

.font-weight-bold {
    font-weight: bold;
}

.font-weight-light {
    font-weight: 300;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

/* Spacing Utilities */
.pt-5 {
    padding-top: 50px;
}

.pb-5 {
    padding-bottom: 50px;
}

.px-5 {
    padding-left: 50px;
    padding-right: 50px;
}

.py-5 {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--border-color);
    margin: 30px 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .navigation,
    .comment-respond {
        display: none;
    }

    .post-article,
    .page-article {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
/* Responsive News Page Layout — FIXED */

/* News Page Layout: Desktop - Sidebar Right */
.content-sidebar-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.main-content {
    flex: 1 1 0%;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* Ensure main content is left */
    order: 1;
}

.sidebar {
    width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    order: 2;
    margin-left: auto;
}

.sidebar .widget {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 24px;
    word-break: break-word;
}

.sidebar .widget p,
.sidebar .widget h3,
.sidebar .widget a,
.sidebar .widget li {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.sidebar .widget .search-form,
.sidebar .widget input[type="search"],
.sidebar .widget input[type="text"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sidebar .widget .cta-button {
    display: inline-block;
    width: auto;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
}

.main-content .post-card {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 900px) {
    .content-sidebar-wrapper {
        flex-direction: column;
        gap: 0;
    }
    .sidebar {
        width: 100%;
        max-width: 100%;
        flex-shrink: 1;
        margin-left: 0;
        order: 2;
        margin-top: 30px;
    }
    .main-content {
        width: 100%;
        order: 1;
    }
}

@media (max-width: 768px) {
    .comment-content {
        margin-left: 0;
    }
    
    .comment-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 8px;
    }
    
    .empty-state-icon {
        font-size: 60px;
    }
    
    .empty-state-title {
        font-size: 1.4rem;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .comment-form {
        padding: 20px;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 6px;
        font-size: 0.85rem;
    }
    
    .empty-state {
        padding: 40px 15px;
    }
    
    .empty-state-icon {
        font-size: 50px;
    }
    
    .empty-state-title {
        font-size: 1.2rem;
    }
    
    .empty-state-text {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Responsive Display Utilities
   ========================================================================== */

/* Desktop and up - default */
.d-xl-none { display: none !important; }
.d-xl-block { display: block !important; }
.d-xl-flex { display: flex !important; }
.d-xl-grid { display: grid !important; }
.d-xl-inline { display: inline !important; }
.d-xl-inline-block { display: inline-block !important; }
.d-xl-inline-flex { display: inline-flex !important; }

/* Large desktop */
@media (max-width: 1200px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
    .d-lg-grid { display: grid !important; }
    .d-lg-inline { display: inline !important; }
    .d-lg-inline-block { display: inline-block !important; }
    .d-lg-inline-flex { display: inline-flex !important; }
}

/* Tablet landscape */
@media (max-width: 1024px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
    .d-md-grid { display: grid !important; }
    .d-md-inline { display: inline !important; }
    .d-md-inline-block { display: inline-block !important; }
    .d-md-inline-flex { display: inline-flex !important; }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
    .d-sm-grid { display: grid !important; }
    .d-sm-inline { display: inline !important; }
    .d-sm-inline-block { display: inline-block !important; }
    .d-sm-inline-flex { display: inline-flex !important; }
}

/* Mobile */
@media (max-width: 576px) {
    .d-xs-none { display: none !important; }
    .d-xs-block { display: block !important; }
    .d-xs-flex { display: flex !important; }
    .d-xs-grid { display: grid !important; }
    .d-xs-inline { display: inline !important; }
    .d-xs-inline-block { display: inline-block !important; }
    .d-xs-inline-flex { display: inline-flex !important; }
}

/* ==========================================================================
   Responsive Spacing Utilities
   ========================================================================== */

@media (max-width: 768px) {
    .mb-md-4 { margin-bottom: 30px !important; }
    .mb-md-3 { margin-bottom: 20px !important; }
    .mb-md-2 { margin-bottom: 15px !important; }
    .mb-md-1 { margin-bottom: 10px !important; }
    .mb-md-0 { margin-bottom: 0 !important; }
    
    .mt-md-4 { margin-top: 30px !important; }
    .mt-md-3 { margin-top: 20px !important; }
    .mt-md-2 { margin-top: 15px !important; }
    .mt-md-1 { margin-top: 10px !important; }
    .mt-md-0 { margin-top: 0 !important; }
    
    .py-md-4 { padding-top: 30px !important; padding-bottom: 30px !important; }
    .py-md-3 { padding-top: 20px !important; padding-bottom: 20px !important; }
    .py-md-2 { padding-top: 15px !important; padding-bottom: 15px !important; }
    .py-md-1 { padding-top: 10px !important; padding-bottom: 10px !important; }
    .py-md-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
}

@media (max-width: 576px) {
    .mb-sm-4 { margin-bottom: 30px !important; }
    .mb-sm-3 { margin-bottom: 20px !important; }
    .mb-sm-2 { margin-bottom: 15px !important; }
    .mb-sm-1 { margin-bottom: 10px !important; }
    .mb-sm-0 { margin-bottom: 0 !important; }
    
    .mt-sm-4 { margin-top: 30px !important; }
    .mt-sm-3 { margin-top: 20px !important; }
    .mt-sm-2 { margin-top: 15px !important; }
    .mt-sm-1 { margin-top: 10px !important; }
    .mt-sm-0 { margin-top: 0 !important; }
    
    .py-sm-4 { padding-top: 30px !important; padding-bottom: 30px !important; }
    .py-sm-3 { padding-top: 20px !important; padding-bottom: 20px !important; }
    .py-sm-2 { padding-top: 15px !important; padding-bottom: 15px !important; }
    .py-sm-1 { padding-top: 10px !important; padding-bottom: 10px !important; }
    .py-sm-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
}

/* ==========================================================================
   Responsive Flex Utilities
   ========================================================================== */

@media (max-width: 768px) {
    .flex-md-row { flex-direction: row !important; }
    .flex-md-column { flex-direction: column !important; }
    .flex-md-wrap { flex-wrap: wrap !important; }
    .flex-md-nowrap { flex-wrap: nowrap !important; }
    .justify-content-md-start { justify-content: flex-start !important; }
    .justify-content-md-center { justify-content: center !important; }
    .justify-content-md-end { justify-content: flex-end !important; }
    .justify-content-md-between { justify-content: space-between !important; }
    .align-items-md-start { align-items: flex-start !important; }
    .align-items-md-center { align-items: center !important; }
    .align-items-md-end { align-items: flex-end !important; }
}

@media (max-width: 576px) {
    .flex-sm-row { flex-direction: row !important; }
    .flex-sm-column { flex-direction: column !important; }
    .flex-sm-wrap { flex-wrap: wrap !important; }
    .flex-sm-nowrap { flex-wrap: nowrap !important; }
    .justify-content-sm-start { justify-content: flex-start !important; }
    .justify-content-sm-center { justify-content: center !important; }
    .justify-content-sm-end { justify-content: flex-end !important; }
    .justify-content-sm-between { justify-content: space-between !important; }
    .align-items-sm-start { align-items: flex-start !important; }
    .align-items-sm-center { align-items: center !important; }
    .align-items-sm-end { align-items: flex-end !important; }
}

/* ==========================================================================
   Responsive Width Utilities
   ========================================================================== */

@media (max-width: 768px) {
    .w-md-100 { width: 100% !important; }
    .w-md-75 { width: 75% !important; }
    .w-md-50 { width: 50% !important; }
    .w-md-25 { width: 25% !important; }
    .w-md-auto { width: auto !important; }
}

@media (max-width: 576px) {
    .w-sm-100 { width: 100% !important; }
    .w-sm-75 { width: 75% !important; }
    .w-sm-50 { width: 50% !important; }
    .w-sm-25 { width: 25% !important; }
    .w-sm-auto { width: auto !important; }
}

/* ==========================================================================
   Responsive Grid Gap Utilities
   ========================================================================== */

@media (max-width: 768px) {
    .gap-md-4 { gap: 30px !important; }
    .gap-md-3 { gap: 20px !important; }
    .gap-md-2 { gap: 15px !important; }
    .gap-md-1 { gap: 10px !important; }
    .gap-md-0 { gap: 0 !important; }
}

@media (max-width: 576px) {
    .gap-sm-4 { gap: 30px !important; }
    .gap-sm-3 { gap: 20px !important; }
    .gap-sm-2 { gap: 15px !important; }
    .gap-sm-1 { gap: 10px !important; }
    .gap-sm-0 { gap: 0 !important; }
}

@media (max-width: 576px) {
    .sidebar .widget {
        padding: 16px;
    }
}
/* ==========================================================================
   Page Template — Full Width Fix
   ========================================================================== */

.page-article img,
.page-featured-image img {
	max-width: 100%;
	height: auto;
	display: block;
}

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

.page-banner {
	width: 100%;
}

/* ==========================================================================
   Logo Responsive Fix
   ========================================================================== */

/* Custom logo image — constrain size */
.hb-logo img,
.hb-logo .custom-logo,
.hb-el.hb-logo img {
    max-height: 70px;
    width: auto;
    max-width: 220px;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 992px) {
    .hb-logo img,
    .hb-logo .custom-logo,
    .hb-el.hb-logo img {
        max-height: 55px;
        max-width: 180px;
    }
}

@media (max-width: 576px) {
    .hb-logo img,
    .hb-logo .custom-logo,
    .hb-el.hb-logo img {
        max-height: 45px;
        max-width: 150px;
    }
}

/* WordPress generates .custom-logo-link wrapping the img */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}


/* ==========================================================================
   Projects — 3D Premium Card Design (max 4 columns)
   ========================================================================== */

.projects-section {
    background: linear-gradient(160deg, #f0f4ff 0%, #f8f9fa 60%, #fff7f0 100%);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: -80px; left: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(26,71,179,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ── Grid — Projects Section ── */
.projects-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    align-items: flex-start !important;
}

/* Desktop: 4 columns */
.projects-section .col-sm-6.col-lg-3 {
    flex: 0 0 calc(25% - 15px) !important;
    max-width: calc(25% - 15px) !important;
    width: calc(25% - 15px) !important;
    grid-column: unset !important;
    margin-bottom: 0 !important;
}

/* Tablet: 2 columns */
@media (max-width: 991px) {
    .projects-section .col-sm-6.col-lg-3 {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
        width: calc(50% - 10px) !important;
    }
}

/* Mobile: 1 column */
@media (max-width: 576px) {
    .projects-section .col-sm-6.col-lg-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ── 3D Card Shell ── */
.projects-section .project-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: none;
    height: auto;
    display: flex;
    flex-direction: column;
    /* layered shadow = 3-D depth illusion */
    box-shadow:
        0 1px 2px rgba(26,71,179,0.08),
        0 4px 10px rgba(26,71,179,0.10),
        0 12px 28px rgba(26,71,179,0.13),
        0 0 0 1px rgba(26,71,179,0.04);
    transform: translateY(0) scale(1);
    transition: transform 0.35s cubic-bezier(.25,.8,.25,1),
                box-shadow 0.35s cubic-bezier(.25,.8,.25,1);
    will-change: transform;
}

.projects-section .project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.55) 0%,
        rgba(255,255,255,0) 60%);
    pointer-events: none;
    z-index: 2;
}

.projects-section .project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 2px 4px rgba(26,71,179,0.10),
        0 8px 20px rgba(26,71,179,0.15),
        0 24px 50px rgba(26,71,179,0.20),
        0 0 0 1.5px rgba(26,71,179,0.10);
}

/* ── Image ── */
.projects-section .project-image {
    height: 190px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.projects-section .project-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
    z-index: 1;
    pointer-events: none;
}

.projects-section .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.25,.8,.25,1);
    display: block;
}

.projects-section .project-card:hover .project-image img {
    transform: scale(1.08);
}

/* ── Status Badge — glossy pill ── */
.projects-section .project-status {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 3;
    background: linear-gradient(135deg, #28c76f, #0ab553);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(40,199,111,0.45);
    text-transform: uppercase;
}

/* ── Details Panel ── */
.projects-section .project-details {
    padding: 18px 18px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* ── Title ── */
.projects-section .project-title {
    font-size: 1.0rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.projects-section .project-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.projects-section .project-title a:hover {
    color: var(--primary-color, #1a47b3);
}

/* ── Description ── */
.projects-section .project-description {
    font-size: 0.83rem;
    line-height: 1.65;
    color: #666;
    margin-bottom: 14px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── CTA Button — gradient pill ── */
.projects-section .cta-button {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 18px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, var(--primary-color,#1a47b3), #2e5fd4) !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(26,71,179,0.30) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    align-self: flex-start;
    margin-top: auto;
}

.projects-section .cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(26,71,179,0.40) !important;
    color: #fff !important;
}

/* ── Accent top-border on hover ── */
.projects-section .project-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color,#1a47b3), var(--secondary-color,#ff6b35));
    opacity: 0;
    transition: opacity 0.35s;
}

.projects-section .project-card:hover::after {
    opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .projects-section .project-image { height: 160px; }
}

@media (max-width: 575px) {
    .projects-section .project-image { height: 200px; }
    .projects-section .project-card { margin-bottom: 0; }
}


/* Override base style.css project-card defaults */
.project-card {
    border-radius: 18px !important;
    box-shadow:
        0 1px 2px rgba(26,71,179,0.08),
        0 4px 10px rgba(26,71,179,0.10),
        0 12px 28px rgba(26,71,179,0.13) !important;
}

.project-image {
    height: 190px !important;
}

/* ═══════════════════════════════════════════════════════════
   DONATION SECTION — sbm-donate
   ═══════════════════════════════════════════════════════════ */

.sbm-donate-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f1d45 0%, #1a3a6b 60%, #0d2b4e 100%);
    position: relative;
    overflow: hidden;
}
.sbm-donate-section::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: rgba(255,107,53,0.07);
    pointer-events: none;
}
.sbm-donate-section .section-title h2,
.sbm-donate-section .section-subtitle {
    color: #fff;
}

/* 80G badge */
.sbm-donate-80g-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,215,0,0.12);
    border: 1px solid rgba(255,215,0,0.4);
    color: #FFD700;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    margin: 0 auto 36px;
    display: flex;
    width: fit-content;
}

/* Grid */
.sbm-donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 10px;
}

/* Card */
.sbm-donate-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    position: relative;
    overflow: hidden;
}
.sbm-donate-card::after {
    content: '';
    position: absolute;
    bottom: -30px; right: -30px;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.sbm-donate-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.10);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.sbm-donate-card-wide {
    grid-column: 1 / -1;
}
@media (min-width: 900px) {
    .sbm-donate-card-wide {
        grid-column: span 2;
        max-width: 600px;
    }
}

/* Icon circle */
.sbm-donate-card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* Headings inside card */
.sbm-donate-card h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}
.sbm-donate-card-desc {
    color: rgba(255,255,255,0.72);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.55;
}

/* Shared label */
.sbm-donate-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}

/* ── UPI QR ── */
.sbm-donate-qr-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    display: inline-block;
    align-self: center;
}
.sbm-donate-qr-img {
    width: 150px; height: 150px;
    display: block;
    object-fit: contain;
}

/* ── UPI ID copy row ── */
.sbm-donate-upi-id-wrap { width: 100%; }
.sbm-donate-upi-id-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 8px 12px;
}
.sbm-donate-upi-id-row code {
    color: #FFD700;
    font-size: 0.95rem;
    background: none;
    flex: 1;
}
.sbm-copy-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 4px;
    transition: color .2s;
}
.sbm-copy-btn:hover { color: #FFD700; }
.sbm-copy-btn.copied { color: #4ade80; }

/* ── Razorpay amount selector ── */
.sbm-rzp-amounts { width: 100%; }
.sbm-rzp-amount-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.sbm-rzp-amt {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all .2s;
}
.sbm-rzp-amt:hover, .sbm-rzp-amt.active {
    background: #006dcc;
    border-color: #006dcc;
    color: #fff;
}
.sbm-rzp-custom-input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 8px 14px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border .2s;
}
.sbm-rzp-custom-input::placeholder { color: rgba(255,255,255,0.4); }
.sbm-rzp-custom-input:focus { border-color: #006dcc; }

/* ── Donate Buttons ── */
.sbm-donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: filter .2s, transform .15s;
    margin-top: auto;
}
.sbm-donate-btn:hover { filter: brightness(1.12); transform: translateY(-1px); text-decoration: none; }
.sbm-donate-btn:active { transform: translateY(0); }

.sbm-btn-upi      { background: #6C4BE8; color: #fff; }
.sbm-btn-razorpay { background: #006dcc; color: #fff; }
.sbm-btn-payu     { background: #f7681a; color: #fff; }
.sbm-btn-paypal   { background: #003087; color: #fff; }
.sbm-btn-paytm    { background: #00BAF2; color: #fff; }

/* ── Bank Transfer Table ── */
.sbm-bank-details-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sbm-bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 9px 14px;
    flex-wrap: wrap;
    gap: 6px;
}
.sbm-bank-label {
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    min-width: 140px;
}
.sbm-bank-val {
    color: #fff;
    font-size: 0.93rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sbm-bank-val code {
    color: #FFD700;
    background: none;
    font-size: 0.93rem;
}

/* Mobile */
@media (max-width: 600px) {
    .sbm-donate-card-wide { grid-column: 1 / -1; max-width: 100%; }
    .sbm-bank-row { flex-direction: column; align-items: flex-start; }
    .sbm-donate-section { padding: 50px 0; }
}

/* BUG FIX: Bank card wide — when it's the only card, the span-2 makes it
   float left instead of centering. Force it to behave as a single full column. */
@media (min-width: 900px) {
    .sbm-donate-grid:only-child .sbm-donate-card-wide,
    .sbm-donate-grid > .sbm-donate-card-wide:only-child {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* BUG FIX: Donation empty state — shown when no payment method is configured */
.sbm-donate-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: rgba(255, 255, 255, 0.55);
}
.sbm-donate-empty-state .fa-hand-holding-heart {
    font-size: 2.5rem;
    margin-bottom: 14px;
    display: block;
    color: rgba(255, 255, 255, 0.3);
}
.sbm-donate-empty-state p {
    font-size: 1rem;
    margin: 0;
}
