/* Gutenberg Block Styles */
.fun_fact_box {
    background: #f8f9fa !important;
    border: 2px solid #667eea !important;
    border-radius: 0 !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.2) !important;
}

.fun_fact_box h3 {
    color: #667eea !important;
    margin-bottom: 10px !important;
}

.achievement_item {
    background: #f8f9fa !important;
    padding: 20px !important;
    border-radius: 0 !important;
    border-left: 4px solid #667eea !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
    margin: 5px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    overflow: hidden !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.achievement_item img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin-bottom: 15px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
}

/* Item Detail List with hard min-width and proper responsive behavior */
.wp-block-quantum-portfolio-item-detail-list {
    display: inline-block !important;
    vertical-align: top !important;
    margin: 5px !important;
    box-sizing: border-box !important;
    min-width: 280px !important;
    flex: 1 1 280px !important;
}

/* Use CSS Grid for proper responsive layout with equal heights */
.wp-block-group:has(.wp-block-quantum-portfolio-item-detail-list),
.wp-block-columns:has(.wp-block-quantum-portfolio-item-detail-list) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
}

/* Fallback for browsers without :has() support */
.wp-block-group,
.wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
}

/* Override grid only for blocks containing Item Detail Lists */
.wp-block-quantum-portfolio-item-detail-list {
    grid-column: auto !important;
    width: auto !important;
    margin: 0 !important;
}

/* Mobile: Force 1 per row */
@media (max-width: 767px) {
    .wp-block-group:has(.wp-block-quantum-portfolio-item-detail-list),
    .wp-block-columns:has(.wp-block-quantum-portfolio-item-detail-list),
    .wp-block-group,
    .wp-block-columns {
        grid-template-columns: 1fr !important;
    }
}

.achievement_item h4 {
    color: #667eea !important;
    margin-bottom: 15px !important;
}

.achievement_item ul {
    list-style: none !important;
    padding: 0 !important;
}

.achievement_item li {
    padding: 5px 0 !important;
    position: relative !important;
    padding-left: 20px !important;
}

.achievement_item li::before {
    content: "→" !important;
    position: absolute !important;
    left: 0 !important;
    color: #667eea !important;
    font-weight: bold !important;
}

.project_item {
    background: #f8f9fa !important;
    padding: 20px !important;
    border-radius: 0 !important;
    margin: 15px 0 !important;
    border-left: 4px solid #764ba2 !important;
    box-shadow: 0 2px 6px rgba(118, 75, 162, 0.1) !important;
}

.project_item h4 {
    color: #764ba2 !important;
    margin-bottom: 10px !important;
}

.intro_section .lead {
    font-size: 1.25rem !important;
    font-weight: 300 !important;
    line-height: 1.6 !important;
    color: #495057 !important;
}

.abstract_section {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-left: 4px solid #007cba !important;
    padding: 25px !important;
    margin: 20px 0 !important;
}

.abstract_section h2 {
    color: #333 !important;
    font-size: 24px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.conclusion_section {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-left: 4px solid #28a745 !important;
    padding: 25px !important;
    margin: 20px 0 !important;
}

.conclusion_section h2 {
    color: #333 !important;
    font-size: 24px !important;
    margin-bottom: 15px !important;
}

.highlight_box {
    background: #e3f2fd !important;
    border: 2px solid #2196f3 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
}

.highlight_box h3 {
    color: #1976d2 !important;
    font-size: 18px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Kill horizontal scrollbar globally */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Convert sidebar to top bar */
.port_topbar_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

/* Style profile image for top bar */
.port_topbar_wrapper .port_sidebar_profile {
    flex-shrink: 0;
}

.port_topbar_wrapper .profile_circle {
    width: 70px;
    height: 70px;
}

.port_topbar_wrapper .profile_circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Style navigation for horizontal layout */
.port_topbar_wrapper .port_sidebar_nav {
    flex: 1;
    margin-left: 30px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.port_topbar_wrapper .nav_list {
    display: flex !important;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    visibility: visible !important;
    opacity: 1 !important;
}

.port_topbar_wrapper .nav_list li {
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.port_topbar_wrapper .siderbar_menuicon {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 70px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 8px;
    gap: 4px;
}

.port_topbar_wrapper .siderbar_menuicon i,
.port_topbar_wrapper .siderbar_menuicon svg {
    color: white !important;
    fill: white !important;
    opacity: 1 !important;
}

.port_topbar_wrapper .first_micon,
.port_topbar_wrapper .second_micon {
    display: block !important;
    opacity: 1 !important;
}

.port_topbar_wrapper .siderbar_menuicon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.port_topbar_wrapper .menu_tooltip {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    background: transparent;
    color: white;
    padding: 0;
    border-radius: 0;
    font-size: 11px;
    font-weight: bold;
    opacity: 1 !important;
    pointer-events: auto;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-align: center;
    margin-top: 2px;
    display: block !important;
    visibility: visible !important;
}

.port_togglebox {
    display: none; /* Hide toggle on desktop */
}

/* Mobile responsive for top bar */
@media (max-width: 768px) {
    .port_topbar_wrapper {
        padding: 0 15px;
    }
    
    .port_topbar_wrapper .nav_list {
        gap: 15px;
    }
    
    .port_topbar_wrapper .siderbar_menuicon {
        width: 35px;
        height: 35px;
    }
}
/* Mobile overrides */
@media (max-width: 768px) {
    .port_topbar_wrapper .port_sidebar_nav,
    .port_topbar_wrapper .nav_list {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Keep the hamburger/menu icon visible */
    .port_topbar_wrapper .siderbar_menuicon {
        display: flex !important;
    }
}

/* Smooth scrolling for navigation */
html {
    scroll-behavior: smooth;
}

/* Section spacing to account for fixed top bar */
[data-scroll] {
    scroll-margin-top: 140px; /* Top bar height + some padding */
}

/* Multi-layer Hero Banner Animations */

/* Layer 1: Background image animation */
.vert-move {
    -webkit-animation: mover 2s infinite alternate;
    animation: mover 2s infinite alternate;
}

/* Layer 2: SVG animation (different timing) */
.svg-move {
    -webkit-animation: svgmover 3s infinite alternate ease-in-out;
    animation: svgmover 3s infinite alternate ease-in-out;
}

/* Layer 3: Foreground image animation (different pattern) */
.foreground-move {
    -webkit-animation: foregroundmover 4s infinite alternate ease-out;
    animation: foregroundmover 4s infinite alternate ease-out;
}

/* Background animation keyframes - DOWN instead of UP */
@-webkit-keyframes mover {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}
@keyframes mover {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* SVG animation keyframes - DOWN movement */
@-webkit-keyframes svgmover {
    0% { transform: translateY(0px) translateX(0px); }
    100% { transform: translateY(15px) translateX(5px); }
}
@keyframes svgmover {
    0% { transform: translateY(0px) translateX(0px); }
    100% { transform: translateY(15px) translateX(5px); }
}

/* Foreground animation keyframes - DOWN pattern */
@-webkit-keyframes foregroundmover {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(8px) translateX(-3px); }
    100% { transform: translateY(5px) translateX(2px); }
}
@keyframes foregroundmover {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(8px) translateX(-3px); }
    100% { transform: translateY(5px) translateX(2px); }
}

/* Full width hero banner - TRULY 100% WIDTH */
.port_bannerbg_wrapper {
    position: relative;
    top: -140px; /* Offset top bar (120px) + container padding (20px) */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: -140px; /* Just offset the negative top positioning */
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    padding: 0;
}

.port_banner_wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.banner_img_wrapper,
.banner_img {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Contain child images */
}

.banner_rcontent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.banner_content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 4;
    color: white;
    pointer-events: auto;
}

/* Responsive SVG styling */
.banner_svg_box,
.move_bg {
    width: 100%;
    height: 100vh;
    display: block;
    margin: 0;
    padding: 0;
    max-width: 100%; /* Force SVG to stay within bounds */
    overflow: hidden;
}

/* Remove any container margins/padding that might cause gaps */
.port_banner_wrapper .container-fluid,
.port_banner_wrapper .row {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* Fix typing animation positioning */
.prefix-typing-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.prefix-typing-wrapper .banner_pera {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    display: inline-block;
}

.prefix-typing-wrapper .banner_typingtext {
    display: inline-block;
    flex: 1;
    min-height: 2em;
    position: relative !important;
}

.banner_typingtext .texts {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-block;
    min-height: 1.5em;
    min-width: 200px;
    position: relative !important;
}

/* Let textillate handle the animation, just ensure proper styling */
.banner_typingtext .texts .list-inline-item {
    font-size: 1.8rem !important;
    color: #000000 !important;
    font-weight: 500 !important;
    position: absolute !important;
    top: -8.5px !important;
    left: -10px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

/* Force visibility on the typing container */
.prefix-typing-wrapper .banner_typingtext,
.prefix-typing-wrapper .banner_typingtext .texts {
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
}

/* Override JavaScript absolute positioning */
.banner_typingtext .texts {
    position: relative !important;
}

.prefix-typing-wrapper .banner_typingtext {
    position: relative !important;
    margin-bottom: 0 !important;
    font-size: inherit !important;
}

/* Override original banner_typingtext styles when inside prefix wrapper */
.prefix-typing-wrapper .banner_typingtext {
    color: inherit !important;
    margin-bottom: 0 !important;
}

/* Multi-layer positioning and styling */

/* Layer 1: Background image */
.banner_background_layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    margin: 0;
    padding: 0;
    pointer-events: none !important;
}

.background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%; /* Force image to stay within bounds */
}

/* Layer 2: SVG layer */
.banner_svg_layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    margin: 0;
    padding: 0;
    pointer-events: none !important;
}

/* Layer 3: Foreground image - smaller, size-aware, behind text */
.banner_foreground_layer {
    position: absolute;
    top: 50%;
    right: 10%;
    width: 400px;
    height: 500px;
    z-index: 3;
    margin: 0;
    padding: 0;
    pointer-events: none !important;
    transform: translateY(-50%);
}

.foreground-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0.9;
    border-radius: 10px;
}

/* Responsive sizing for foreground image */
@media (max-width: 1200px) {
    .banner_foreground_layer {
        width: 300px;
        height: 400px;
        right: 5%;
    }
}

@media (max-width: 768px) {
    .banner_foreground_layer {
        width: 200px;
        height: 300px;
        right: 5%;
        top: 60%;
    }
}

@media (max-width: 480px) {
    .banner_foreground_layer {
        display: none; /* Hide on very small screens */
    }
}


/* Mobile responsive rules */
@media (max-width: 768px) {
    /* Hide foreground image on mobile */
    .banner_foreground_layer {
        display: none !important;
    }
    
    /* Adjust content positioning for mobile */
    .banner_content {
        left: 5% !important;
        padding-right: 5%;
    }
}

/* Social Media Icons Styling */
.social-media-icons {
    margin-top: 20px !important;
}

.social-media-icons .social-icon {
    display: inline-block;
    margin-right: 30px;
    font-size: 48px;
    color: #666;
    text-decoration: none;
}

.social-media-icons .social-icon:last-child {
    margin-right: 0;
}

/* Responsive social icons */
@media (max-width: 768px) {
    .social-media-icons .social-icon {
        font-size: 48px;
        margin-right: 15px;
    }
}

/* Education Tab System - Pure CSS */
.edu_tab_container {
    margin: 15px 0;
}

/* Hide radio buttons */
.edu_tab_container input[type="radio"] {
    display: none;
}

.edu_button_row {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.edu_tab_btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.edu_tab_btn:hover {
    background: rgba(255, 81, 126, 0.3);
    color: #fff;
}

/* Active tab styling based on checked radio button */
.edu_tab_container input[type="radio"]:checked + input + input + .edu_button_row .edu_tab_btn:nth-child(1),
.edu_tab_container input[type="radio"]:checked + input + .edu_button_row .edu_tab_btn:nth-child(2),
.edu_tab_container input[type="radio"]:checked + .edu_button_row .edu_tab_btn:nth-child(3) {
    background: #ff517e;
    color: #fff;
    border-color: #ff517e;
}

/* Simpler approach - target each radio individually */
.edu_tab_container input[id*="details_tab"]:checked ~ .edu_button_row label[for*="details_tab"],
.edu_tab_container input[id*="coursework_tab"]:checked ~ .edu_button_row label[for*="coursework_tab"],
.edu_tab_container input[id*="projects_tab"]:checked ~ .edu_button_row label[for*="projects_tab"] {
    background: #ff517e;
    color: #fff;
    border-color: #ff517e;
}

.edu_content_area {
    margin-top: 15px;
    min-height: 60px;
}

/* Hide all tabs by default */
.edu_content_tab {
    display: none;
}

/* Show tab based on which radio is checked */
.edu_tab_container input[id*="details_tab"]:checked ~ .edu_content_area .details_tab,
.edu_tab_container input[id*="coursework_tab"]:checked ~ .edu_content_area .coursework_tab,
.edu_tab_container input[id*="projects_tab"]:checked ~ .edu_content_area .projects_tab {
    display: block;
}

.edu_content_tab .ex_details {
    margin: 0;
    line-height: 1.6;
}

/* Education Tables */
.coursework_table_wrapper,
.projects_table_wrapper {
    margin-top: 15px;
    overflow-x: auto;
}

.edu_table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.edu_table th {
    background: rgba(255, 81, 126, 0.2);
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid rgba(255, 81, 126, 0.3);
}

.edu_table td {
    padding: 12px 15px;
    color: #ddd;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
}

.edu_table tr:last-child td {
    border-bottom: none;
}

.edu_table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.project_link_btn {
    display: inline-block;
    padding: 6px 12px;
    background: #ff517e;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.project_link_btn:hover {
    background: #e63e6b;
    transform: translateY(-1px);
}

.no_link {
    color: #666;
    font-style: italic;
}

.coming_soon {
    color: #ff517e;
    font-style: italic;
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

/* Responsive tables */
@media (max-width: 768px) {
    .edu_table th,
    .edu_table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .project_link_btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    /* Make projects table more mobile-friendly */
    .projects_table th:nth-child(2),
    .projects_table td:nth-child(2) {
        max-width: 150px;
        word-wrap: break-word;
    }
}

/* Mobile responsive for education tabs */
@media (max-width: 768px) {
    .edu_button_row {
        gap: 5px;
    }
    
    .edu_tab_btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Enhanced Education Table Styling with Gradients */
.edu_table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Table Header with Blue-Purple Gradient */
.edu_table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.edu_table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

/* Table Body with Better Visibility */
.edu_table td {
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    color: #333 !important;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.edu_table tr:nth-child(even) td {
    background-color: #f8f9fa;
}

.edu_table tr:hover td {
    background-color: #e3f2fd;
    transition: background-color 0.2s ease;
}

/* Enhanced Tab Button Styling */
.edu_tab_btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    padding: 10px 20px;
    margin-right: 5px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edu_tab_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Active/Selected Tab with Orange Color */
.edu_tab_container input[id*="details_tab"]:checked ~ .edu_button_row label[for*="details_tab"],
.edu_tab_container input[id*="coursework_tab"]:checked ~ .edu_button_row label[for*="coursework_tab"],
.edu_tab_container input[id*="projects_tab"]:checked ~ .edu_button_row label[for*="projects_tab"] {
    background: linear-gradient(135deg, #ff8a65 0%, #ff5722 100%) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

/* Enhanced Table Wrapper */
.coursework_table_wrapper,
.projects_table_wrapper {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Project Link Button Styling */
.project_link_btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.project_link_btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

/* No Link Styling */
.no_link {
    color: #999;
    font-style: italic;
}

/* Enhanced Coming Soon Text */
.coming_soon {
    text-align: center;
    color: #666 !important;
    font-style: italic;
    font-size: 16px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    margin: 20px 0;
}

/* Improved Content Tab Styling */
.edu_content_tab {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.edu_content_tab p.ex_details {
    color: #444 !important;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Enhanced Button Row */
.edu_button_row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* Enhanced Mobile Responsive for Education Tables */
@media (max-width: 768px) {
    .edu_table th,
    .edu_table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .edu_tab_btn {
        padding: 8px 16px;
        font-size: 13px;
        margin-right: 3px;
    }
    
    .edu_button_row {
        gap: 5px;
    }
}

/* Projects Block Styling */
.blog_section {
    padding: 80px 0;
    background: #fafafa;
}

.port_blog_mainbox {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.port_blog_mainbox:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.port_blog_imgbox {
    flex: 0 0 300px;
    overflow: hidden;
}

.port_blog_imgbox img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.port_blog_mainbox:hover .port_blog_imgbox img {
    transform: scale(1.05);
}

.port_blog_contentbox {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog_heading {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog_heading a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog_heading a:hover {
    color: #667eea;
}

.port_blog_contentbox p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog_bottom_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.blog_meta_info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.date_info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #777;
}

.date_info i {
    color: #999;
}

.date_span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author_info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #777;
}

.author_info i {
    color: #999;
}

.author_info a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author_info a:hover {
    color: #667eea;
}

.blog_readmore .readmore_btn {
    background: linear-gradient(135deg, #ff8a65 0%, #ff5722 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.readmore_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    background: linear-gradient(135deg, #ff7043 0%, #d84315 100%);
    color: white;
    text-decoration: none;
}

.readmore_btn i {
    transition: transform 0.3s ease;
}

.readmore_btn:hover i {
    transform: translateX(3px);
}

/* Project Filter Buttons */
.blog_filter_buttons {
    margin: 40px 0 60px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter_btn {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.filter_btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.filter_btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .port_blog_mainbox {
        flex-direction: column;
        margin-bottom: 30px;
    }
    
    .port_blog_imgbox {
        flex: none;
        height: 200px;
    }
    
    .port_blog_imgbox img {
        height: 200px;
    }
    
    .port_blog_contentbox {
        padding: 20px;
    }
    
    .blog_heading {
        font-size: 18px;
    }
    
    .port_blog_contentbox p {
        font-size: 14px;
    }
    
    .blog_bottom_row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .blog_meta_info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .blog_filter_buttons {
        gap: 10px;
        margin: 30px 0 40px 0;
    }
    
    .filter_btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* Animation for filtered items */
.port_blog_mainbox {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.port_blog_mainbox.filtering-out {
    opacity: 0;
    transform: translateY(20px);
}

/* Coming soon styling for empty state */
.projects-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.projects-empty-state .coming_soon {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Blog Post Single Template Styling */
.blog_post_wrapper {
    min-height: 100vh;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog_header {
    background: white;
    border-radius: 0;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
}

.blog_title_section {
    /* No special positioning needed */
}

/* Removed separate blog_date styling - now using post-date in meta */

.blog_title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.blog_meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.blog_meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
}

.blog_meta i {
    color: #667eea;
}

.blog_content {
    background: white;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.blog_featured_image {
    padding: 40px 40px 0 40px;
}

.blog_featured_image img {
    border-radius: 0;
    box-shadow: none;
}

.blog_text {
    padding: 40px;
}

/* Introduction Section */
.intro_section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
}

.intro_section .lead {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    font-weight: 400;
}

/* Abstract Section */
.abstract_section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #ff8a65;
}

.abstract_section h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.abstract_section p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Fun Fact Box */
.fun_fact_box {
    background: #fff8dc;
    border: 2px solid #ffd700;
    padding: 20px;
    margin: 30px 0;
}

.fun_fact_box h3 {
    color: #b8860b;
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fun_fact_box p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Conclusion Section */
.conclusion_section {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #28a745;
}

.conclusion_section h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.conclusion_section p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.conclusion_section p:last-child {
    margin-bottom: 0;
}

/* Main Content Styling */
.main_content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.main_content h2 {
    font-size: 32px;
    color: #2c3e50;
    margin: 40px 0 20px 0;
    font-weight: 600;
}

.main_content h3 {
    font-size: 26px;
    color: #34495e;
    margin: 30px 0 15px 0;
    font-weight: 500;
}

.main_content p {
    margin-bottom: 20px;
    text-align: justify;
}

.main_content strong {
    color: #2c3e50;
    font-weight: 600;
}

.main_content ul, .main_content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.main_content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Blog Footer */
.blog_footer {
    padding: 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.blog_navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav_btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* CV Button Adjustments */
.brc_hirebtn .portfolio_btn,
.brc_hirebtn.mbrc_hirebtn .portfolio_btn,
.brc_hirebtn .portfolio_btn.btn_orange,
.brc_hirebtn.mbrc_hirebtn .portfolio_btn.btn_orange {
    margin-top: 40px !important;
    pointer-events: auto !important;
    z-index: 10 !important;
    position: relative !important;
}

/* Ensure hire button is always clickable */
.brc_hirebtn {
    pointer-events: auto !important;
    z-index: 10 !important;
    position: relative !important;
}

/* Fix banner content interactivity */
.banner_content .brc_hirebtn a,
.banner_content .portfolio_btn {
    pointer-events: auto !important;
    z-index: 20 !important;
    position: relative !important;
    display: inline-block !important;
    cursor: pointer !important;
}

/* Mobile responsive styling */
@media (max-width: 768px) {
    .brc_hirebtn .portfolio_btn,
    .brc_hirebtn.mbrc_hirebtn .portfolio_btn,
     .brc_hirebtn .portfolio_btn.btn_orange,
    .brc_hirebtn.mbrc_hirebtn .portfolio_btn.btn_orange {
        width: 90% !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        text-align: center !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog_title {
        font-size: 36px;
    }
    
    .blog_meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .blog_text, .blog_featured_image {
        padding: 20px;
    }
    
    .intro_section, .abstract_section, .fun_fact_box, .conclusion_section {
        padding: 20px;
    }
    
    .blog_navigation {
        flex-direction: column;
        text-align: center;
    }
    
    .nav_btn {
        width: 100%;
        justify-content: center;
    }
}

/* Highlight Box (similar to achievements) */
.highlight_box {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-left: 5px solid #4caf50;
    padding: 20px;
    margin: 30px 0;
    border-radius: 10px;
}

.highlight_box p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #2e7d32;
}

/* Achievement Grid and Course sections */
.achievements_grid, .coursework_section {
    margin: 40px 0;
}

.achievement_item, .project_item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
}

.achievement_item h4, .project_item h4 {
    color: #667eea;
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievement_item ul {
    list-style: none;
    padding: 0;
}

.achievement_item li {
    padding: 5px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.achievement_item li:before {
    content: "▸";
    color: #667eea;
    position: absolute;
    left: 0;
}

/* Contact Popup Styles */
.contact_popup_overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.contact_popup_modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.contact_popup_header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact_popup_header h3 {
    margin: 0;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.contact_popup_close_btn {
    background: #ff8a65;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact_popup_close_btn:hover {
    background: #ff5722;
    transform: translateY(-1px);
}

.contact_popup_content {
    padding: 30px 25px;
}

.contact_method {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact_method:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.contact_method:last-child {
    margin-bottom: 0;
}

.contact_method i {
    font-size: 24px;
    color: #ff8a65;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.contact_method div {
    flex: 1;
}

.contact_method strong {
    display: block;
    color: white;
    font-size: 16px;
    margin-bottom: 5px;
}

.contact_method p {
    margin: 0;
    font-size: 14px;
}

.contact_method a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact_method a:hover {
    color: #ff8a65;
}

/* QR Code Section */
.contact_qr_section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr_code_container {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.contact_qr_code {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    background: white;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.qr_description h4 {
    color: white;
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.qr_description p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Contact Methods Grid */
.contact_methods_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* Mobile responsive for contact popup */
@media (max-width: 768px) {
    .contact_popup_modal {
        width: 95%;
        margin: 0 2.5%;
    }
    
    .contact_popup_header {
        padding: 15px 20px;
    }
    
    .contact_popup_header h3 {
        font-size: 20px;
    }
    
    .contact_popup_content {
        padding: 20px;
    }
    
    .contact_method {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .contact_method i {
        font-size: 20px;
        margin-right: 12px;
    }
}

