/*
Theme Name: ROF Normanton Park Floors Theme
Theme URI: 
Author: AI Assistant
Author URI: 
Description: A custom luxury theme for ROF Normanton Park Floors under Deen Dayal Jan Awas Yojana (DDJAY) with built-in referral and webhook processing.
Version: 2.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deendayal-theme
*/

:root {
    --rof-primary: #4a0e35;
    --rof-primary-dark: #350825;
    --rof-primary-light: #6d144e;
    --rof-gold: #c59b27;
    --rof-gold-light: #dfb547;
    --rof-bg-light: #fbf7fa;
}

/* Base Responsive & Overflow Safety */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    font-family: 'Poppins', sans-serif;
    color: #2b2b2b;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Prevent text overflow on all mobile screens */
p, h1, h2, h3, h4, h5, h6, span, a, li, strong, small {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Colors */
.bg-light-blue {
    background-color: #fbf7fa !important;
}

.text-primary {
    color: #4a0e35 !important;
}

.text-gold {
    color: #c59b27 !important;
}

.bg-primary {
    background-color: #4a0e35 !important;
}

.border-primary {
    border-color: #4a0e35 !important;
}

.text-success {
    color: #008744 !important;
}

.border-success {
    border-color: #4a0e35 !important;
}

.bg-success {
    background-color: #4a0e35 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Top bar */
.top-bar {
    background-color: #330723 !important;
    border-bottom: 1px solid rgba(197, 155, 39, 0.4);
    font-size: 13px;
}

/* Main header */
.active-nav {
    border-bottom: 2px solid #4a0e35 !important;
    color: #4a0e35 !important;
}

.logo-main {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

/* Tabs */
.custom-tabs {
    border-bottom: 2px solid #f0e6ed;
}

.custom-tabs .nav-link {
    border: none;
    background: transparent;
    color: #7d4469;
    font-weight: 600;
    padding: 10px 24px;
    margin-right: 10px;
    font-size: 18px;
    border-radius: 6px 6px 0 0;
}

.custom-tabs .nav-link:hover {
    color: #4a0e35;
    background-color: #fbf7fa;
}

.custom-tabs .nav-link.active {
    color: #4a0e35 !important;
    border-bottom: 3px solid #4a0e35 !important;
    background: #fff;
    font-weight: 700;
}

/* Project Details List */
.project-details-list {
    font-size: 15px;
    line-height: 1.85;
}

.project-details-list li {
    margin-bottom: 6px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Action Buttons */
.action-buttons-list li a {
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    color: #4a0e35;
    overflow-wrap: break-word;
    word-break: break-word;
}

.action-buttons-list li a:hover {
    color: #c59b27 !important;
    text-decoration: underline !important;
}

/* Blinking text for Apply Online */
.blink-btn {
    animation: blink 1.5s infinite;
    background: linear-gradient(135deg, #4a0e35 0%, #6d144e 100%);
    color: #fff;
    padding: 4px 14px;
    border-radius: 6px;
    font-weight: bold;
    border: 1px solid #c59b27;
}

@keyframes blink {
    0% { opacity: 0.85; }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.85; }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 14, 53, 0.4); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(74, 14, 53, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 14, 53, 0); }
}

/* Sidebar Categories */
.cursor-pointer {
    cursor: pointer;
}

.category-header {
    background-color: #4a0e35 !important;
    border-color: #4a0e35 !important;
}

.category-header:hover {
    background-color: #350825 !important;
}

.category-body li:hover {
    background-color: #fcf5f9;
}

.category-body a:hover {
    color: #4a0e35 !important;
}

/* Luxury Tables */
.table-luxury-header {
    background-color: #4a0e35 !important;
    color: #ffffff !important;
}

.table-luxury-header th {
    background-color: #4a0e35 !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 12px 10px;
    border-color: #350825;
}

/* Executive Spec & Highlight Cards */
.spec-card {
    background: #ffffff;
    border: 1px solid #eedde7;
    border-radius: 10px;
    padding: 16px 18px;
    transition: all 0.25s ease;
    height: 100%;
}
.spec-card:hover {
    border-color: #4a0e35;
    box-shadow: 0 6px 18px rgba(74, 14, 53, 0.08);
    transform: translateY(-2px);
}
.spec-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fdf5f9;
    color: #4a0e35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid #ebd0e1;
    flex-shrink: 0;
}
.highlight-card {
    background: #ffffff;
    border: 1px solid #eedde7;
    border-radius: 12px;
    padding: 22px;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    border-top: 3px solid #4a0e35;
}
.timeline-box {
    background: #ffffff;
    border: 1px solid #ebd0e1;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(74, 14, 53, 0.05);
}
.timeline-step {
    background: #fdf7fa;
    border: 1px solid #f0dae7;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

/* Helper for borders on larger screens */
@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid #dee2e6;
    }
}
@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid #dee2e6;
    }
}

/* Comprehensive Mobile Styles */
@media (max-width: 767.98px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .top-bar {
        font-size: 11.5px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .main-header {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .logo-main {
        max-height: 40px !important;
    }

    .logo-secondary {
        max-height: 28px !important;
    }

    .custom-tabs .nav-link {
        font-size: 14px !important;
        padding: 8px 14px !important;
        margin-right: 4px !important;
    }

    .project-details-list {
        font-size: 13.5px !important;
        line-height: 1.7 !important;
    }

    .project-details-list li {
        margin-bottom: 8px !important;
    }

    .overview-box {
        padding: 18px 14px !important;
    }

    .action-buttons-list li a {
        font-size: 13.5px !important;
        padding: 8px 10px !important;
    }

    .fixed-bottom {
        padding: 6px !important;
    }

    .fixed-bottom a.btn {
        width: 100% !important;
        max-width: 300px !important;
        font-size: 0.95rem !important;
        padding: 8px 16px !important;
    }

    h1, .h1 { font-size: 1.35rem !important; }
    h2, .h2 { font-size: 1.25rem !important; }
    h3, .h3 { font-size: 1.15rem !important; }

    /* Tables on mobile */
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 6px;
    }

    .table-responsive table {
        min-width: 680px;
    }
}
