/*
Theme Name: DANEM Verification
Theme URI: https://danemverification.com
Author: DANEM
Author URI: https://danemverification.com
Description: Professional WordPress theme for DANEM Verification & Certification services. Features customizable homepage sections, custom post types for Services and Documents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: danem
*/

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --text-muted: #6c757d;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: var(--white-color) !important;
    box-shadow: var(--shadow-sm);
}

.navbar-brand .logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    color: var(--dark-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.carousel {
    position: relative;
    height: 600px;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.3) 0%, rgba(108, 117, 125, 0.3) 100%);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 50%;
    transform: translateY(50%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption h1 {
    animation: fadeInUp 1s ease;
}

.carousel-caption p {
    animation: fadeInUp 1.2s ease;
}

.carousel-caption .btn {
    animation: fadeInUp 1.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .carousel {
        height: 400px;
    }

    .carousel-caption h1 {
        font-size: 1.8rem !important;
    }

    .carousel-caption p {
        font-size: 1rem !important;
    }
}

.feature-card {
    background: var(--white-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.feature-icon i {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.2) rotate(5deg);
}

.service-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contact-form {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.logo-footer {
    height: 60px;
    width: auto;
    filter: brightness(1.2);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-contact li {
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

@media (max-width: 991px) {
    .navbar-collapse {
        padding: 1rem;
        margin-top: 1rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-item {
        border-bottom: 1px solid #e9ecef;
        padding: 0.5rem 0;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .nav-item .collapse {
        margin: 0.5rem 0;
        padding: 0.5rem 0;
    }

    .nav-item .collapse .dropdown-item {
        padding: 0.5rem 1rem !important;
        color: var(--dark-color) !important;
        text-decoration: none !important;
        display: block !important;
        border-radius: 5px !important;
        transition: all 0.3s ease !important;
        font-size: 1rem !important;
        font-weight: 400 !important;
        background-color: transparent !important;
    }

    .nav-item .collapse .dropdown-item:hover {
        background-color: rgba(13, 110, 253, 0.1) !important;
        color: var(--primary-color) !important;
        padding-left: 1.5rem !important;
    }

    .nav-item .collapse .dropdown-header {
        font-size: 0.85rem !important;
        color: var(--text-muted) !important;
        padding: 0.5rem 1rem !important;
        font-weight: 600 !important;
    }

    /* Chevron icon in mobile menu */
    .nav-link .bi-chevron-down {
        transition: transform 0.3s ease;
        font-size: 0.9rem;
        float: right;
        margin-top: 0.2rem;
    }

    .nav-link[aria-expanded="true"] .bi-chevron-down {
        transform: rotate(180deg);
    }
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--success-color) 100%);
}

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

.fade-in {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3436 100%);
    color: var(--white-color);
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

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

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow);
}

.document-item {
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.document-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.document-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

/* Document Card Styles */
.document-card {
    background: var(--white-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.document-preview {
    background: var(--light-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.document-preview i {
    font-size: 4rem;
    color: var(--primary-color);
}

/* PDF Viewer */
.pdf-viewer {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
}

/* Service Single Page */
.service-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3436 100%);
    color: var(--white-color);
    padding: 5rem 0 4rem;
}

.service-content {
    padding: 3rem 0;
}

.service-sidebar {
    position: sticky;
    top: 100px;
}

.cta-section {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 4rem 0;
}

/* Archive Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* ================================================
   Contact Form 7 Styling - Bootstrap 5 Compatible
   ================================================ */

/* CF7 Form Container */
.wpcf7 {
    width: 100%;
}

.wpcf7 form {
    width: 100%;
}

/* CF7 Form Controls */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark-color);
    background-color: var(--white-color);
    background-clip: padding-box;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin-bottom: 1rem;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    color: var(--dark-color);
    background-color: var(--white-color);
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* CF7 Textarea */
.wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}

/* CF7 Labels */
.wpcf7 label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

/* CF7 Paragraph Wrapper */
.wpcf7 p {
    margin-bottom: 1rem;
}

/* CF7 Submit Button */
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    color: var(--white-color);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: auto;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.wpcf7 input[type="submit"]:active,
.wpcf7 button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

/* CF7 Required Asterisk */
.wpcf7 .wpcf7-form-control-wrap {
    position: relative;
    display: block;
}

/* CF7 Validation Messages */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.wpcf7-response-output {
    margin: 1.5rem 0 0;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.wpcf7-mail-sent-ok {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-validation-errors {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

.wpcf7-spam-blocked {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    color: #664d03;
}

/* CF7 Checkboxes and Radio Buttons */
.wpcf7 .wpcf7-list-item {
    display: inline-block;
    margin: 0 1rem 0.5rem 0;
}

.wpcf7 .wpcf7-list-item-label {
    margin-left: 0.5rem;
    font-weight: normal;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
    width: auto;
    margin: 0;
    vertical-align: middle;
}

/* CF7 Acceptance Checkbox - Inline Layout */
.wpcf7 .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
    margin-left: 0;
    line-height: 1.5;
}

/* CF7 File Upload */
.wpcf7 input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    color: var(--dark-color);
    background-color: var(--white-color);
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.wpcf7 input[type="file"]::-webkit-file-upload-button {
    padding: 0.5rem 1rem;
    margin: -0.5rem -0.5rem -0.5rem 0;
    margin-right: 0.75rem;
    color: var(--dark-color);
    background-color: var(--light-color);
    border: 0;
    border-right: 2px solid #e9ecef;
    border-radius: 0;
    transition: all 0.3s ease;
}

.wpcf7 input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #e2e6ea;
}

/* CF7 Spinner */
.wpcf7 .ajax-loader {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 10px;
    vertical-align: middle;
    background: transparent url('../images/ajax-loader.gif') no-repeat center;
}

.wpcf7 form.submitting .ajax-loader {
    opacity: 1;
}

/* CF7 Acceptance */
.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

/* CF7 Quiz */
.wpcf7 .wpcf7-quiz-label {
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .wpcf7 input[type="submit"],
    .wpcf7 button[type="submit"] {
        width: 100%;
        padding: 0.875rem 1rem;
    }

    .wpcf7 .wpcf7-list-item {
        display: block;
        margin: 0 0 0.5rem 0;
    }
}

/* Screen reader only (for accessibility) */
.wpcf7-screen-reader-response {
    position: absolute;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    word-wrap: normal !important;
}

/* ================================================
   Document Table Styles
   ================================================ */
.document-table-wrapper {
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.document-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.document-table thead {
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
}

.document-table thead th {
    padding: 14px 20px;
    font-weight: 700;
    color: #333;
    text-align: left;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
}

.document-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.document-table tbody tr:last-child {
    border-bottom: none;
}

.document-table tbody tr:hover {
    background: #f8f9ff;
}

.document-table tbody td {
    padding: 14px 20px;
    vertical-align: middle;
    color: #444;
}

.document-table .col-num {
    width: 50px;
    text-align: center;
    font-weight: 700;
    color: #666;
}

.document-table .col-name {
    font-weight: 500;
    color: #222;
}

.document-table .col-action {
    width: 80px;
    text-align: center;
}

.doc-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #555;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.doc-action-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.3);
}

@media (max-width: 576px) {

    .document-table thead th,
    .document-table tbody td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .document-table .col-action {
        width: 50px;
    }

    .doc-action-btn {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }
}