/* Careerlogist.com Styles - Based on doktoraz.my design */

:root {
    --primary-blue: #003057;
    --dark-blue: #001f3f;
    --accent-orange: #f89406;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333;
    --white: #ffffff;
    --text-color: #333;
    --heading-color: #003057;
}

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

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    color: var(--heading-color);
    font-weight: 800; /* Raleway Heavy */
    margin-bottom: 1rem;
    letter-spacing: -0.02em; /* Tighter letter spacing for premium feel */
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
}

/* Header/Navigation */
.header {
    background-color: var(--primary-blue);
    padding: 0.75rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800; /* Raleway Heavy */
    font-family: 'Raleway', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.logo i {
    font-size: 1.2rem;
}

.logo img {
    height: 45px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu li {
    flex-shrink: 0;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    transition: color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    border-bottom: 1.5px solid transparent;
}

.nav-menu a:hover {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

.nav-menu a.active {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

.nav-menu .btn {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    font-weight: 600;
}

.nav-menu .btn:hover {
    background-color: #d87f05;
    color: var(--white);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section */
.section {
    padding: 5.5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--primary-blue);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--dark-gray);
    max-width: 700px;
    margin: -2rem auto 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600; /* Raleway Semi-Bold */
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #d87f05;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

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

.btn-primary:hover {
    background-color: var(--dark-blue);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
}

.btn-outline:hover {
    background-color: var(--accent-orange);
    color: var(--white);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: var(--light-gray);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

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

/* Services/Features Cards */
.feature-card {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    height: 100%;
}

.feature-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600; /* Raleway Semi-Bold */
    font-family: 'Raleway', sans-serif;
    color: var(--primary-blue);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-orange);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* Pricing Cards */
.pricing-card {
    background-color: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--accent-orange);
    transform: scale(1.05);
}

.pricing-card.featured {
    border-color: var(--accent-orange);
    box-shadow: 0 5px 25px rgba(248, 148, 6, 0.2);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800; /* Raleway Heavy */
    font-family: 'Raleway', sans-serif;
    color: var(--primary-blue);
    margin: 1rem 0;
}

.pricing-card .price small {
    font-size: 1rem;
    color: var(--dark-gray);
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.pricing-card ul li:before {
    content: "✓ ";
    color: var(--accent-orange);
    font-weight: 800; /* Raleway Heavy */
    margin-right: 0.5rem;
}

/* Footer - Minimal Two-Row */
.footer-minimal {
    background-color: var(--primary-blue);
    padding: 2.5rem 0;
    font-family: 'Raleway', sans-serif;
}

.footer-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.footer-brand-name {
    color: var(--white);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-brand-name:hover {
    color: var(--white);
    opacity: 0.8;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--white);
}

.footer-row-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-business-info {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 400;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.2px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
    font-weight: 400;
    font-family: 'Raleway', sans-serif;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    font-weight: 400;
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* Alerts/Flash Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.table th {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600; /* Raleway Semi-Bold */
    font-family: 'Raleway', sans-serif;
}

.table tr:hover {
    background-color: var(--light-gray);
}

/* Admin Resources Table - Specific Column Widths */
.table th:nth-child(1), .table td:nth-child(1) { width: 120px; } /* Category */
.table th:nth-child(2), .table td:nth-child(2) { width: auto; min-width: 180px; } /* Title */
.table th:nth-child(3), .table td:nth-child(3) { width: 80px; text-align: center; } /* Type */
.table th:nth-child(4), .table td:nth-child(4) { width: 300px; max-width: 300px; } /* Description */
.table th:nth-child(5), .table td:nth-child(5) { width: 100px; text-align: center; } /* Downloads */
.table th:nth-child(6), .table td:nth-child(6) { width: 120px; } /* Date */
.table th:nth-child(7), .table td:nth-child(7) { width: 140px; min-width: 140px; } /* Actions */

/* Table Responsive Wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Admin Action Buttons - Ensure consistent sizing */
.table td .btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Testimonial Card */
.testimonial-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-orange);
}

.testimonial-card .rating {
    color: var(--accent-orange);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card .author {
    font-weight: 600; /* Raleway Semi-Bold */
    font-family: 'Raleway', sans-serif;
    color: var(--primary-blue);
    margin-top: 1rem;
}

.testimonial-card .position {
    color: var(--dark-gray);
    font-style: italic;
}

/* Event Card */
.event-card {
    display: flex;
    gap: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.event-card img {
    width: 400px;
    height: auto;
    object-fit: contain;
}

.event-card-content {
    padding: 1.5rem;
    flex: 1;
}

.event-date {
    color: var(--accent-orange);
    font-weight: 600; /* Raleway Semi-Bold */
    font-family: 'Raleway', sans-serif;
    margin-bottom: 0.5rem;
}

.event-price {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.event-price .public-price {
    text-decoration: line-through;
    color: var(--dark-gray);
}

.event-price .member-price {
    color: var(--accent-orange);
    font-weight: 600; /* Raleway Semi-Bold */
    font-family: 'Raleway', sans-serif;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600; /* Raleway Semi-Bold */
    font-family: 'Raleway', sans-serif;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #333;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary-blue);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

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

    .event-card {
        flex-direction: column;
    }

    .event-card img {
        width: 100%;
        height: auto;
    }

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

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-1 { gap: 1rem; }

/* ==================== YOUTUBE RESOURCE STYLES ==================== */

/* Resource Cards with Thumbnails */
.resource-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.resource-card.video-resource {
    cursor: pointer;
}

.resource-card img {
    width: 240px;
    height: 135px; /* 16:9 aspect ratio */
    object-fit: cover;
    flex-shrink: 0;
}

.resource-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.resource-info p {
    margin: 0 0 1rem 0;
    color: var(--dark-gray);
    flex: 1;
}

.resource-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600; /* Raleway Semi-Bold */
    font-family: 'Raleway', sans-serif;
}

.duration {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--dark-gray);
    font-size: 0.85rem;
}

.category-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600; /* Raleway Semi-Bold */
    font-family: 'Raleway', sans-serif;
}

/* Resource Detail Page */
.resource-detail {
    max-width: 900px;
    margin: 0 auto;
}

.resource-detail h1 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.resource-detail .resource-meta {
    margin-bottom: 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-container iframe {
    display: block;
}

.resource-description {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.resource-description h3 {
    margin-top: 0;
    color: var(--primary-blue);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 600; /* Raleway Semi-Bold */
    font-family: 'Raleway', sans-serif;
}

.back-link:hover {
    color: var(--accent-orange);
}

/* Mobile Responsive for Resources */
@media (max-width: 768px) {
    .resource-card {
        flex-direction: column;
    }

    .resource-card img {
        width: 100%;
        height: 200px;
    }

    .video-container iframe {
        height: 250px;
    }
}

/* Footer: left group */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: left;
    align-items: flex-start;
}

/* Footer: developer credit */
.footer-credit {
    text-align: center;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.3px;
}

.footer-credit a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Footer: inline Digital Perpetual credit link */
.footer-dp-link {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.2px;
    display: block;
    padding: 0;
    margin: 0;
    margin-left: 0 !important;
    text-indent: 0;
    transition: color 0.3s ease;
}

.footer-dp-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-link-sep {
    color: rgba(255,255,255,0.25);
    font-size: 0.8rem;
}
