/* ===== PAGE SPECIFIC STYLES ===== */

/* Solid Header for inner pages */
.header-solid {
    background: var(--primary);
    box-shadow: var(--shadow-md);
}

.header-solid .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.header-solid .nav-link:hover,
.header-solid .nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-dark:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.header-solid .mobile-menu-btn span {
    background: var(--white);
}

/* Page Header */
.page-header {
    background: url('images/hands-bg.png');
    background-size: cover;
    background-position: center;
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #1dd1a1, #ff6b6b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
    animation: pageHeaderGradient 6s ease-in-out infinite, fadeInUp 0.8s ease-out;
}

@keyframes pageHeaderGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.page-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Page Header with Video Background */
.page-header-video {
    position: relative;
    overflow: hidden;
}

.page-header-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.85), rgba(220, 38, 38, 0.75));
    z-index: 1;
}

.page-header-video .container {
    position: relative;
    z-index: 2;
}

/* Step Card with Image */
.step-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.step-card-link:hover {
    transform: translateY(-5px);
}

.step-card-image {
    width: 100%;
    height: 150px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.step-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.step-card-link:hover .step-card-image img {
    transform: scale(1.1);
}

/* ===== SEARCH PAGE ===== */
.search-section {
    padding: var(--space-2xl) 0;
    background: var(--gray-100);
    min-height: 100vh;
}

.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

/* ===== NEO UTILITIES ===== */
/* Pop Card: Solid color, thick border, hard shadow */
.pop-card {
    background: var(--white);
    border: var(--border-main);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
}

.pop-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translate(-2px, -2px);
    transition: all var(--transition-normal);
}

/* Pop Input: Square, thick border */
.pop-input {
    width: 100%;
    padding: var(--space-md);
    border: var(--border-main);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 500;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.pop-input:focus {
    outline: none;
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translate(-2px, -2px);
    border-color: var(--secondary);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
}

.filter-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.btn-text {
    background: none;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-text:hover {
    text-decoration: underline;
}

.filter-group {
    margin-bottom: var(--space-lg);
}

.filter-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
}

.filter-options {
    display: flex;
    gap: var(--space-md);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    font-size: 0.9rem;
}

.radio-option input {
    accent-color: var(--accent);
}

.filter-select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.input-sm {
    width: 80px;
    padding: var(--space-sm);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.input-sm:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-block {
    width: 100%;
    margin-top: var(--space-lg);
}

/* Results */
.search-results {
    min-height: 600px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.results-count {
    margin: 0;
    color: var(--gray-600);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sort-options label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.sort-select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--white);
}

/* Profile Cards */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.profile-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--success);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.profile-info {
    padding: var(--space-lg);
}

.profile-info h4 {
    margin: 0 0 var(--space-xs);
    font-size: 1.1rem;
}

.profile-details {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
}

.profile-location,
.profile-education {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xs);
}

.profile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
}

.btn-sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: #ffe5e5;
    transform: scale(1.1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
}

.page-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
    background: var(--accent);
    color: var(--white);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: var(--space-xs);
}

.page-num {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.page-num:hover,
.page-num.active {
    background: var(--accent);
    color: var(--white);
}

/* ===== AUTH PAGES (LOGIN/REGISTER) ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, var(--gray-100) 0%, #e0f2fe 100%);
}

.auth-left {
    flex: 1;
    background: transparent;
    /* Handled via inline style or separate class */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-3xl);
    position: relative;
    overflow: hidden;
    color: var(--black);
    /* Force dark text */
    z-index: 10;
    /* Ensure content is above background */
}

/* Remove the old overlay */
.auth-left::before {
    display: none;
}

.auth-left .logo {
    position: absolute;
    top: var(--space-xl);
    left: var(--space-xl);
}

.auth-welcome {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
}

.auth-welcome h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--black);
    /* Force dark heading */
}

.auth-welcome p {
    font-size: 1.25rem;
    color: var(--gray-800);
    /* Dark grey text */
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    /* Increase gap massively to prevent overlap */
    width: 100%;
    margin-top: var(--space-lg);
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--black);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    /* Contain layout */
}

.auth-feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 3px 3px 0 var(--black);
    color: var(--black) !important;
    /* Force black icon */
}

.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl);
    background: var(--white);
}

.auth-form-container {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.auth-form-header {
    margin-bottom: var(--space-2xl);
}

.auth-form-header h1 {
    margin-bottom: var(--space-sm);
}

.auth-form-header p {
    color: var(--gray-600);
    margin: 0;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.form-input:hover {
    border-color: var(--gray-300);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.04);
    background: #fff;
}

.form-input.error {
    border-color: var(--danger);
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.input-with-icon .form-input {
    padding-left: calc(var(--space-md) + 24px);
}

.password-toggle {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--gray-700);
}

.form-helper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.checkbox-label input {
    accent-color: var(--accent);
}

.forgot-link {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: var(--space-xl) 0;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.auth-divider span {
    padding: 0 var(--space-md);
}

.social-buttons {
    display: flex;
    gap: var(--space-md);
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.btn-social:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    display: block;
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: var(--space-xs);
}

/* ===== REGISTER PAGE SPECIFIC ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-500);
    font-size: 0.875rem;
}

.step.active {
    color: var(--accent);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.step.active .step-number {
    background: var(--accent);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

/* ===== PROFILE VIEW PAGE ===== */
.profile-page {
    padding-top: 80px;
    background: var(--gray-100);
    min-height: 100vh;
}

.profile-header-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: var(--space-3xl) 0;
    margin-bottom: var(--space-2xl);
}

.profile-header-content {
    display: flex;
    gap: var(--space-2xl);
    align-items: flex-end;
}

.profile-photo-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    flex-shrink: 0;
}

.profile-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header-info {
    flex: 1;
    color: var(--white);
}

.profile-header-info h1 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.profile-actions-header {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
    padding-bottom: var(--space-3xl);
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.profile-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.profile-section h3 {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.info-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 500;
    color: var(--gray-800);
}

.about-text {
    color: var(--gray-700);
    line-height: 1.8;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.contact-action {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.similar-profiles {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mini-profile {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    transition: all var(--transition-fast);
}

.mini-profile:hover {
    background: var(--gray-100);
}

.mini-profile-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.mini-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-profile-info h5 {
    font-size: 0.95rem;
    margin: 0 0 var(--space-xs);
}

.mini-profile-info p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.contact-info-box {
    background: linear-gradient(135deg, rgba(255, 75, 107, 0.92), rgba(255, 144, 104, 0.92)), url('images/rings-bg.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: 100%;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.contact-info-box h3 {
    color: var(--white);
    margin-bottom: var(--space-xl);
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: -1px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-bottom: var(--space-xs);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-item h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 700;
}

.contact-form-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.contact-form-box h3 {
    margin-bottom: var(--space-xl);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .search-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        display: none;
    }

    .filters-sidebar.active {
        display: block;
    }

    .auth-page {
        flex-direction: column;
    }

    .auth-left {
        padding: var(--space-3xl) var(--space-xl);
        min-height: auto;
    }

    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-actions-header {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: var(--space-xl);
    }

    .results-header {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pagination {
        flex-direction: column;
    }

    .social-buttons {
        flex-direction: column;
    }
}
/* ===== MOBILE FIXES FOR PAGES ===== */
@media (max-width: 768px) {
    /* Fix the Blocky Gradient Text Issue */
    .page-header h1 {
        background: none !important;
        -webkit-text-fill-color: initial !important; 
        color: #ffffff !important; /* White text fallback */
        text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
        font-size: 2.5rem !important;
        animation: none !important;
    }

    /* Alternative: If we really want gradient, we do it safer */
    @supports (-webkit-background-clip: text) {
        .page-header h1 {
            background: linear-gradient(135deg, #ffffff, #ffeaa7) !important;
            -webkit-background-clip: text !important;
            background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            color: transparent !important;
        }
    }

    /* Fix Subtitle Box */
    .page-header p {
        background: rgba(0,0,0,0.4) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
    }

    /* Reduce Video Load on Pages too if present */
    .page-header-video-bg {
        display: none !important;
    }
    
    .page-header-video {
        background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/header-new.png');
        background-size: cover;
        background-position: center;
    }
}
