/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

:root {
	--cnvs-themecolor: #009290;
	--cnvs-themecolor-rgb: 0, 146, 144;

	--cnvs-body-font: "Roboto", sans-serif;
	--cnvs-primary-font: 'Oswald', sans-serif;

	--cnvs-btn-skew: 15deg;

	--cnvs-section-bg: #cdcdcd;

	--cnvs-section-margin: 5.5rem;
}

/* Target Bootstrap columns specifically for mobile single column */

@media (max-width: 768px) {
    
    /* Target the specific section with the family content */
    #content .container .container {
        padding: 15px !important;
    }
    
    /* Force Bootstrap rows to stack */
    #content .row {
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Force ALL Bootstrap columns to full width */
    #content .col-1,
    #content .col-2, 
    #content .col-3,
    #content .col-4,
    #content .col-5,
    #content .col-6,
    #content .col-7,
    #content .col-8,
    #content .col-9,
    #content .col-10,
    #content .col-11,
    #content .col-12,
    #content [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-bottom: 20px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Remove card styling completely */
    #content .content-section,
    #content .content-block,
    #content .highlight-card,
    #content .leadership-card,
    #content .initiative-card,
    #content .specialty-card,
    #content .event-category,
    #content .timeline-section,
    #content .sidebar-info {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 0 25px 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Clean typography */
    #content p {
        margin-bottom: 18px !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }
    
    #content h2 {
        margin: 25px 0 15px 0 !important;
        font-size: 1.4em !important;
        clear: both !important;
    }
    
    #content h3 {
        margin: 20px 0 12px 0 !important;
        font-size: 1.2em !important;
        clear: both !important;
    }
    
    #content h4 {
        margin: 18px 0 10px 0 !important;
        font-size: 1.1em !important;
        clear: both !important;
    }
    
    /* Lists */
    #content ul {
        padding-left: 20px !important;
        margin-bottom: 15px !important;
    }
    
    #content li {
        margin-bottom: 6px !important;
        line-height: 1.5 !important;
    }
    
    /* Special sections */
    #content .section-header {
        margin-bottom: 20px !important;
        text-align: center !important;
    }
    
    #content .quote-section {
        padding: 25px 15px !important;
        margin: 30px 0 !important;
        text-align: center !important;
        background: #f5f5f5 !important;
        border-radius: 5px !important;
    }
    
    #content blockquote {
        margin-bottom: 15px !important;
        line-height: 1.6 !important;
        font-size: 1.1em !important;
        font-style: italic !important;
    }
    
    #content .conclusion-section {
        padding: 20px 0 !important;
        margin-top: 30px !important;
    }
    
    /* Images */
    #content img {
        max-width: 100% !important;
        height: auto !important;
        margin: 15px 0 !important;
        display: block !important;
    }
}

/* Google sheets formatting */

#table td {
  text-align: left !important;
  padding: 8px 12px !important;
}

#table td:nth-child(2) {
  text-align: center !important;
  font-weight: bold;
}

#table td:nth-child(3), 
#table td:nth-child(4) {
  text-align: right !important;
}

#table th {
  text-align: center !important;
}


/* Hide hero background image on mobile devices */
/* @media screen and (max-width: 768px) { */
  /* Method 1: If the image is set as a background-image on an element */
  /* .hero-section,
  .hero-bg,
  #hero,
  [style*="hero-bg2.jpg"] {
    background-image: none !important;
    display: none !important;
  } */
  
  /* Method 2: If it's an img tag with specific class or src */
  /* img[src*="hero-bg2.jpg"],
  .hero-background-img {
    display: none !important;
  } */
  
  /* Method 3: If you know the specific element ID or class name */
  /* #hero-background,
  .hero-bg2 {
    display: none !important;
  } */
/* } */

/* ===================================================
   RESPONSIVE HERO IMAGE SWITCHING
   Add this to your custom.css file
=================================================== */

/* ===================================================
   FIXED MOBILE HERO IMAGE CSS - Common Issues Resolved
=================================================== */

/* Desktop/Default Hero Image - FIXED PATH */
.hero-section,
#hero,
.hero-background {
  background-image: url('../demos/spra/images/hero-bg2.jpg'); /* Added ../ to go up from css folder */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* Changed from fixed - fixes iOS Safari issues */
  min-height: 600px;
  position: relative;
  width: 100%; /* Ensure full width */
}

/* Mobile Fixes - FIXED PATHS */
@media screen and (max-width: 768px) {
  .hero-section,
  #hero,
  .hero-background {
    background-image: url('../demos/spra/images/hero-mobile2.jpg') !important; /* Fixed path */
    background-attachment: scroll !important; /* Critical for mobile */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 300px !important;
    width: 100% !important;
    /* Fix for zero height issue */
    height: auto !important;
    display: block !important;
    
    /* Vendor prefixes for better mobile support */
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
  }
  
  /* Force element to have content/height if it's empty */
  .hero-section:empty,
  #hero:empty,
  .hero-background:empty {
    min-height: 300px !important;
    content: "" !important;
  }
}

/* Tablet View - FIXED PATH */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-section,
  #hero,
  .hero-background {
    background-image: url('../demos/spra/images/hero-tablet.jpg'); /* Fixed path */
    background-attachment: scroll; /* Also remove fixed for tablets */
    min-height: 500px;
    background-position: center center;
  }
}

/* ===================================================
   ALTERNATIVE METHOD: Separate Mobile Elements
   Use this if the above doesn't work
=================================================== */

/* Hide desktop hero on mobile, show mobile version */
@media screen and (max-width: 768px) {
  /* Hide desktop version */
  .desktop-hero,
  .hero-section.desktop {
    display: none !important;
  }
  
  /* Show mobile version - FIXED PATH */
  .mobile-hero {
    display: block !important;
    background-image: url('../demos/spra/images/hero-mobile2.jpg') !important; /* Fixed path */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    min-height: 300px !important;
    width: 100% !important;
    
    /* Fallback color in case image doesn't load */
    background-color: #cdcdcd !important;
  }
}

/* Show desktop version on larger screens */
@media screen and (min-width: 769px) {
  .desktop-hero,
  .hero-section.desktop {
    display: block !important;
    background-image: url('../demos/spra/images/hero-bg2.jpg'); /* Fixed path */
    background-size: cover;
    background-position: center center;
    background-attachment: scroll; /* Keep as scroll for better performance */
    min-height: 600px;
  }
  
  .mobile-hero {
    display: none !important;
  }
}

/* ===================================================
   DEBUGGING STYLES - Since debug content shows, the issue is image loading
=================================================== */

/* Next debugging step: Check if image path is correct */
/* @media screen and (max-width: 768px) {
  .hero-section,
  #hero,
  .hero-background { */
    /* Temporarily use a solid color to confirm element is there */
    /* background-color: #009290 !important; Your theme color */
    /* border: 2px solid red !important;
  }
  
  .hero-section::after,
  #hero::after,
  .hero-background::after {
    content: "Element visible - Image path issue?" !important;
    display: block !important;
    color: white !important;
    font-weight: bold !important;
    padding: 20px !important;
    text-align: center !important;
    background: rgba(0,0,0,0.7) !important;
  }
} */

/* ===================================================
   IMAGE SIZE REQUIREMENTS FOR MOBILE:
   
   CRITICAL: Make sure your mobile images are under these limits:
   - Mobile Safari: Max 1024px width recommended
   - File size: Under 1MB for mobile
   - Dimensions: 480px × 270px to 768px × 432px works best
   
   Current recommended sizes:
   - hero-mobile.jpg: 480px × 270px (under 500KB)
   - hero-tablet.jpg: 1024px × 576px (under 800KB)
   - hero-bg2.jpg: 1600px × 900px (under 1.5MB)
=================================================== */

/* Default for desktop */
#spbra-finals-ad {
  width: 800px;
  height: 400px;
}

/* Tablet */
@media (max-width: 768px) {
  #spbra-finals-ad {
    width: 100%;
    height: 300px;
  }
}

/* Mobile */
@media (max-width: 350px) {
  #spbra-finals-ad {
    width: 100%;
    height: 250px;
  }
}

.navbar-offset {
    margin-top: 210px; /* Adjust this value based on your navbar height */
}

/* Default/Desktop styles */
.navbar-offset {
    margin-top: 210px;
}

/* Large tablets and small laptops */
@media (max-width: 1024px) {
    .navbar-offset {
        margin-top: 140px;
    }
}

/* Standard tablets */
@media (max-width: 768px) {
    .navbar-offset {
        margin-top: 120px;
    }
}

/* Large phones */
@media (max-width: 576px) {
    .navbar-offset {
        margin-top: 100px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .navbar-offset {
        margin-top: 80px;
    }
}

/* Very small phones */
@media (max-width: 375px) {
    .navbar-offset {
        margin-top: 70px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-offset {
        margin-top: 160px; /* Smaller margin for mobile */
    }
}

/* Form Styles */
.form-widget {
	background: white;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	overflow: hidden;
	margin-bottom: 40px;
}

.form-header {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	padding: 30px;
	border-bottom: 1px solid #dee2e6;
	text-align: center;
}

.form-header h2 {
	font-family: 'Oswald', sans-serif;
	color: var(--spbra-primary);
	font-size: 1.8em;
	margin-bottom: 10px;
}

.form-header p {
	color: #666;
	margin: 0;
}

.form-content {
	padding: 40px;
}

.row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
}

.col-6 {
	width: 50%;
	padding: 0 15px;
}

.col-12 {
	/* width: 100%; */
	padding: 0 15px;
}

.form-group {
	margin-bottom: 25px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #555;
	font-size: 0.95em;
}

.form-control {
	width: 100%;
	padding: 15px 20px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	font-size: 16px;
	transition: all 0.3s ease;
	background: #fafbfc;
	font-family: inherit;
}

.form-control:focus {
	outline: none;
	border-color: var(--spbra-primary);
	background: white;
	box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.1);
}

.form-select {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 12px;
	padding-right: 40px;
}

.amount-input-group {
	position: relative;
}

.amount-input-group::before {
	content: '$';
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--spbra-primary);
	font-weight: bold;
	font-size: 18px;
	pointer-events: none;
	z-index: 2;
}

.amount-input-group .form-control {
	padding-left: 45px;
	font-size: 18px;
	font-weight: 600;
}

.quick-amounts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-top: 10px;
}

.quick-amount {
	padding: 12px;
	background: #f8f9fa;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 600;
	color: var(--spbra-primary);
}

.quick-amount:hover {
	background: var(--spbra-primary);
	color: white;
	transform: translateY(-2px);
}

.payment-methods {
	display: flex;
	gap: 15px;
	margin-top: 20px;
}

.payment-method {
	flex: 1;
	padding: 20px;
	background: #f8f9fa;
	border: 2px solid #e1e5e9;
	border-radius: 10px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.payment-method.active {
	border-color: var(--spbra-primary);
	background: rgba(0, 169, 157, 0.05);
}

.payment-method i {
	font-size: 24px;
	color: #3D95CE;
	margin-bottom: 8px;
}

.payment-method .method-name {
	font-weight: 600;
	color: #333;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 30px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	gap: 10px;
	min-width: 150px;
}

.btn-secondary {
	background: var(--spbra-primary);
	color: white;
}

.btn-secondary:hover {
	background: #008a80;
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(0, 169, 157, 0.3);
}

.btn-secondary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Result Section */
.form-result {
	margin-top: 30px;
	padding: 20px;
	border-radius: 10px;
	display: none;
}

.form-result.success {
	background: #d4edda;
	border: 2px solid #c3e6cb;
	color: #155724;
}

.form-result.error {
	background: #f8d7da;
	border: 2px solid #f5c6cb;
	color: #721c24;
}

.result-icon {
	font-size: 48px;
	margin-bottom: 20px;
}

.payment-details {
	background: white;
	padding: 20px;
	border-radius: 8px;
	margin: 20px 0;
	border-left: 4px solid var(--spbra-primary);
}

.venmo-links {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin: 20px 0;
}

.venmo-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #3D95CE;
	color: white;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.venmo-btn:hover {
	background: #2a7bb8;
	transform: translateY(-2px);
	color: white;
}

.manual-instructions {
	background: #f0f9f0;
	padding: 20px;
	border-radius: 8px;
	border-left: 4px solid var(--spbra-success);
	margin-top: 20px;
}

/* Loading Spinner */
.form-process {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	z-index: 9999;
}

.css3-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.css3-spinner-scaler {
	width: 40px;
	height: 40px;
	border: 4px solid var(--spbra-primary);
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsive */
/* @media (max-width: 768px) {
	.col-6 {
		width: 100%;
	}
	
	.quick-amounts {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.page-title h1 {
		font-size: 2em;
	}
	
	.form-content {
		padding: 20px;
	}
	
	.venmo-links {
		flex-direction: column;
		align-items: center;
} */

/* Error Handling */
.form-group > label.error {
	display: block !important;
	text-transform: none;
	color: var(--spbra-danger);
	font-size: 0.875em;
	margin-top: 5px;
}

.rounded-4 {
  width: 100%;
  height: auto; /* Maintains aspect ratio */
}

.half-size {
  max-width: 50%; /* Adjust this value as needed */
  height: auto; /* Maintains aspect ratio */
}