/*
Theme Name: Alphacution
Theme URI: https://alphacution.com
Author: Paul Christy
Author URI: https://egodetroit.com
Description: A custom WordPress theme with post feed grid layout
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: alphacution
*/

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
    /* Colors */
    --color-primary: #00a2f8;
    --color-primary-dark: #005a87;
    --color-secondary: #5f6c7b;
    --color-text: #333;
    --color-text-light: #7f8795;
    --color-text-lighter: #9fa5ae;
    --color-bg-primary: #fff;
    --color-bg-secondary: #f5f5f5;
    --color-bg-tertiary: #f0f0f0;
    --color-border: #ddd;
    --color-border-light: #e8e8e8;
    --color-hover: #f9f9f9;
    --color-footer-bg: #0d3752;
    --color-footer-social-bg: #3b6c81;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --spacing-xxl: 60px;
    
    /* Layout */
    --header-height: 85px;
    --container-padding: 5%;
    --container-max-width: 1440px;
    --border-radius-sm: 3px;
    --border-radius-md: 4px;
    --border-radius-lg: 8px;
    
    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 14px;
    --font-size-sm: 11px;
    --font-size-md: 13px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-xxl: 24px;
    --line-height-base: 1.6;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

body {
    font-family: var(--font-family-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg-secondary);
    font-size: var(--font-size-base);
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Section Containers */
.section-padding {
    padding: var(--spacing-xxl) 0;
}

.section-padding-top {
    padding-top: var(--spacing-xxl);
}

.section-padding-bottom {
    padding-bottom: var(--spacing-xxl);
}

.container-standard {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    margin: 0 var(--container-padding);
    padding: 0 var(--spacing-md);
}

/* Section Title Pattern */
.section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--spacing-lg) 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: var(--color-primary);
}

/* Responsive Grid */
.grid-5-col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .grid-5-col {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
    
    .grid-5-col,
    .grid-3-col {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    background-color: #fff;
    height: 85px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 45px;
    width: auto;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.main-navigation {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
}

.main-navigation .translator {
    margin-right: 30px;
}

.translator a.gt_switcher-popup.glink.nturl.notranslate span {
    display: none;
}

.main-navigation > ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    height: 100%;
}

.main-navigation > ul > li {
    margin: 0;
    position: relative;
    height: 100%;
}

.main-navigation > ul > li > a {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    height: 100%;
    border-top: 3px solid transparent;
}

.main-navigation > ul > li > a:hover,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current-menu-parent > a {
    color: #0073aa;
    border-top-color: var(--color-primary);
}

/* Submenu links (don't need full height) */
.main-navigation .sub-menu li {
    margin: 0;
    position: relative;
    height: auto;
}

.main-navigation .sub-menu a {
    color: #555;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    height: auto;
    border-top: none;
}

.main-navigation .sub-menu a:hover {
    color: #0073aa;
    background: #f5f5f5;
}

/* Dropdown Toggle Icon */
.main-navigation .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    margin-left: 3px;
    transition: transform 0.3s ease;
}

.main-navigation .has-dropdown:hover > a .dropdown-toggle {
    transform: rotate(180deg);
}

/* Dropdown Menus */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% - 10px);
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    min-width: 220px;
    padding: 10px 0;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
    list-style: none !important;
}

.main-navigation .sub-menu li {
    list-style: none !important;
}

.main-navigation .sub-menu li::before {
    display: none !important;
    content: none !important;
}

.main-navigation .has-dropdown,
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .has-dropdown:hover > .sub-menu {
    display: flex;
}

/* Add invisible bridge between parent and submenu to prevent gap */
.main-navigation .has-dropdown:before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    display: none;
}

.main-navigation .has-dropdown:hover:before {
    display: block;
}

.main-navigation .has-dropdown:hover > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation .sub-menu a {
    justify-content: space-between;
}

/* Second Level Dropdown (Grandchild) */
.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 5px;
}

.main-navigation .sub-menu .has-dropdown:hover > .sub-menu {
    display: flex;
}

/* Dropdown indicator for nested items */
.main-navigation .sub-menu .dropdown-toggle i {
    transform: rotate(-90deg);
}

.main-navigation .sub-menu .has-dropdown:hover > a .dropdown-toggle i {
    transform: rotate(0deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
}

.hamburger-icon .line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger icon animation when active */
.mobile-menu-toggle.is-active .line-1 {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-toggle.is-active .line-2 {
    opacity: 0;
}

.mobile-menu-toggle.is-active .line-3 {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ==========================================================================
   Homepage Hero Section
   ========================================================================== */

.homepage-hero {
    position: relative;
    width: 100%;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a1929;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 5%;
    text-align: left;
}

.hero-headline {
    font-size: 22px;
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* ==========================================================================
   Author Archive
   ========================================================================== */

.author-info-section {
    background-color: #fff;
    padding: 40px 5%;
}

.author-info-wrapper {
    width: 100%;
    margin: 0 auto;
}

.author-info-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: block;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.author-bio {
    color: #333;
}

.author-bio p {
    margin: 0 0 15px 0;
}

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

/* ==========================================================================
   Page Template
   ========================================================================== */

.page-hero {
    position: relative;
    width: 100%;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a1929;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-bottom: 0;
}

.page-container {
    padding: 40px 20px;
    background-color: #fff;
}

.page-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 0;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.page-content h1 {
    font-size: 32px;
}

.page-content h2 {
    font-size: 22px;
}

/* Standardize all H3s - use section-title utility */
h3,
.page-content h3,
.feed-section-title,
.posts-feed-heading,
.section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: 0 0 var(--spacing-lg) 0;
    text-align: left;
}

h3::after,
.page-content h3::after,
.feed-section-title::after,
.posts-feed-heading::after,
.section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: var(--color-primary);
}

.page-content p {
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.page-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.page-content ul,
.page-content ol {
    margin: 20px 0;
    padding-left: 40px;
}

.page-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* ==========================================================================
   Company Page Sections
   ========================================================================== */

.company-section {
    background-color: #fff;
    padding: 60px 5%;
}

.company-container {
    margin: 0 auto;
}

.company-columns {
    display: grid;
    gap: 40px;
}

.company-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.company-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.company-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.company-column-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.company-column-title:after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: #00a2f8;
}

.company-column-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.company-column-content p {
    margin-bottom: 20px;
}

.company-column-content p:last-child {
    margin-bottom: 0;
}

.company-column-content h1,
.company-column-content h2,
.company-column-content h3,
.company-column-content h4,
.company-column-content h5,
.company-column-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.company-column-content h1 {
    font-size: 32px;
}

.company-column-content h2 {
    font-size: 22px;
}

.company-column-content h3 {
    font-size: 24px;
}

.company-column-content ul,
.company-column-content ol {
    margin: 20px 0;
    padding-left: 40px;
}

.company-column-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Checkmarks for three-column section lists */
.company-three-column .company-column-content ul {
    list-style: none;
    padding-left: 0;
}

.company-three-column .company-column-content ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
}

.company-three-column .company-column-content ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #000;
    font-size: 18px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-column-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.company-column-content iframe {
    max-width: 100%;
    margin: 20px 0;
}

/* Responsive video embed wrapper */
.company-column-content .wp-block-embed,
.company-column-content .wp-embed-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
}

.company-column-content .wp-block-embed iframe,
.company-column-content .wp-embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* For direct iframe embeds (not wrapped in WordPress blocks) */
.company-column-content > iframe,
.company-column-content p > iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 315px;
}

/* ==========================================================================
   Founders Page
   ========================================================================== */

.founder-section {
    background-color: #fff;
    padding: 60px 5%;
}

.founder-section.founder-even {
    background-color: #f9f9f9;
}

.founder-container {
    margin: 0 auto;
}

.founder-layout {
    display: grid;
    grid-template-columns: 33.33% 66.67%;
    gap: 60px;
    align-items: start;
}

/* Left Side: Image + Social (33%) */
.founder-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.founder-image {
    width: 100%;
}

.founder-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.founder-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.founder-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.founder-social-icon:hover {
    background-color: #005a87;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Right Side: Name + Description (66%) */
.founder-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.founder-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.founder-title-separator {
    font-weight: 400;
    color: #666;
}

.founder-title {
    font-weight: 400;
    font-style: italic;
    color: #666;
}

.founder-name:after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background-color: #00a2f8;
    min-width: 100px;
}

.founder-description {
    line-height: 1.6;
    color: #333;
}

.founder-description p {
    margin-bottom: 20px;
}

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

.founder-description h1,
.founder-description h2,
.founder-description h3,
.founder-description h4,
.founder-description h5,
.founder-description h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.founder-description ul,
.founder-description ol {
    margin: 20px 0;
    padding-left: 40px;
}

.founder-description li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.founder-description img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

/* ==========================================================================
   Icon Boxes Section
   ========================================================================== */

.home .icon-boxes-section {
    padding: 0 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.icon-boxes-section {
    padding: 60px calc(5% + 20px);
}

.icon-boxes-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 0 auto;
}

.icon-box {
    background-color: #fff;
    padding: 35px 30px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: 275px;
    height: 275px;
}

.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.icon-box-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f8f8f8;
    border: 3px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box-icon i {
    font-size: 40px;
    color: #00a8e8;
}

.icon-box-title {
    font-size: 18px;
    font-weight: 600;
    color: #5f6c7b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    flex-shrink: 0;
}

.icon-box-description {
    font-size: 14px;
    line-height: 1.5;
    color: #7f8795;
    margin: 0;
    flex: 1;
}

.icon-box-button {
    display: inline-block;
    background-color: #5f6c7b;
    color: #fff;
    padding: 10px 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    border-radius: 6px;
    flex-shrink: 0;
}

.icon-box-button:hover {
    background-color: #4a5563;
}

/* ==========================================================================
   Feed Page Template
   ========================================================================== */

.feed-page-container,
.feed-page-wrapper.with-sidebar {
    display: flex;
    gap: 40px;
    padding: 40px 5%;
    background-color: #fff;
    max-width: 100%;
}

.feed-content {
    flex: 1;
    max-width: calc(77.5% - 20px);
}

.feed-sidebar {
    width: 22.5%;
    flex-shrink: 0;
}

/* Case Study Page Specific Styles */
.case-study-intro {
    background-color: #fff;
    padding: 40px 5%;
    border-bottom: 1px solid #e0e0e0;
}

.case-study-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.case-study-intro-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.case-study-intro-content p:last-child {
    margin-bottom: 0;
}

/* Feed Page Wrapper Variations */
.feed-page-wrapper {
    display: flex;
    gap: 40px;
    padding: 40px 5%;
    background-color: #fff;
    max-width: 100%;
}

.feed-page-wrapper.with-sidebar .feed-content {
    flex: 1;
    max-width: calc(77.5% - 20px);
}

.feed-page-wrapper.no-sidebar .feed-content {
    flex: 1;
    max-width: 100%;
    margin: 0 auto;
}

/* Feed Post Items */
.feed-posts {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feed-post-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 10px;
}

.feed-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feed-post-top {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.feed-post-image {
    width: 35%;
    flex-shrink: 0;
}

.feed-post-image a {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.feed-post-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.feed-post-image a:hover img {
    transform: scale(1.05);
}

.feed-post-content {
    flex: 1;
}

.feed-post-title {
    font-size: 18px;
    font-weight: 600;
    color: #5f6c7b;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.feed-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feed-post-title a:hover {
    color: #0073aa;
}

.feed-post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.feed-post-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    padding: 5px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.feed-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.feed-meta-separator {
    color: #ccc;
}

.feed-post-author,
.feed-post-date,
.feed-post-category {
    color: #666;
}

.feed-post-author a,
.feed-post-category {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feed-post-author a:hover,
.feed-post-category:hover {
    color: #005a87;
    text-decoration: underline;
}

.feed-read-more {
    display: inline-block;
    color: #0073aa;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.feed-read-more:hover {
    color: #005a87;
}

/* Loading and Messages */
.feed-loading,
.feed-no-more,
.feed-no-posts {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 16px;
}

.feed-loading {
    background: #f5f5f5;
    border-radius: 4px;
    margin-top: 30px;
}

/* Sidebar Widgets */
.feed-sidebar .widget {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.feed-sidebar .widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
}

.feed-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feed-sidebar .widget li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.feed-sidebar .widget li:last-child {
    border-bottom: none;
}

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

.feed-sidebar .widget a:hover {
    color: #0073aa;
}

/* Recent Posts Widget with Images & Tabs */
.posts-tabs-widget {
    margin-top: 15px;
}

.posts-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.posts-tab-button {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.posts-tab-button:hover {
    color: #0073aa;
    background: #f9f9f9;
}

.posts-tab-button.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.posts-tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recent-posts-widget {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.recent-post-item:first-child {
    padding-top: 0;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-thumbnail {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    transition: transform 0.3s ease;
}

.recent-post-thumbnail:hover {
    transform: scale(1.05);
}

.recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recent-post-no-image {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-post-no-image span {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
}

.recent-post-details {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.recent-post-title:hover {
    color: #0073aa;
}

.recent-post-date {
    display: block;
    font-size: 13px;
    color: #999;
}

/* ==========================================================================
   Post Grid Layout
   ========================================================================== */

.posts-container {
    max-width: auto;
    margin: 40px auto;
    padding: 0 20px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    width: 100%;
    height: 170px;
    overflow: hidden;
    position: relative;
    background-color: #e0e0e0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 15px;
}

.post-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #0073aa;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #0073aa;
}

.post-date {
    font-size: 13px;
    color: #666;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.pagination .current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ==========================================================================
   Single Post Styles
   ========================================================================== */

.single-post-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.single-post-container article {
    background-color: #fff;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.entry-featured-image {
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    width: 100%;
}

.entry-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-header {
    padding: 30px 40px 20px 40px;
}

.entry-category {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #0073aa;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.entry-title {
    font-size: 32px;
    font-weight: 600;
    color: #5f6c7b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.entry-meta {
    font-size: 15px;
    color: #5f6c7b;
    display: flex;
    align-items: center;
    gap: 0;
}

.entry-meta .posted-on,
.entry-meta .subscriber-label {
    color: #5f6c7b;
}

.entry-meta .meta-separator {
    margin: 0 8px;
    color: #5f6c7b;
}

.entry-content {
    line-height: 1.8;
    color: #333;
    padding: 20px 40px 40px 40px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

/* Responsive adjustments for single posts */
@media (max-width: 768px) {
    .entry-header {
        padding: 20px 20px 15px 20px;
    }
    
    .entry-title {
        font-size: 24px;
    }
    
    .entry-content {
        padding: 15px 20px 30px 20px;
        font-size: 16px;
    }
}

/* Related Posts Section */
.related-posts-section {
    background-color: #fff;
    padding: 20px 0;
}

.related-posts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.related-posts-title {
    font-size: 20px;
    font-weight: 600;
    padding-top: 0;
    color: #333;
    margin-bottom: 30px;
    text-align: left;
}

/* Related posts use the same .posts-grid and .post-card classes as homepage */

/* Add border to related post cards only */
.related-posts-section .post-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

}

@media (max-width: 768px) {
    .related-posts-section {
        padding: 40px 0;
    }
    
    .related-posts-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   Form Elements & Inputs
   ========================================================================== */

/* Text Inputs, Textareas, and Selects */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="url"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
input[type="date"]:hover,
textarea:hover,
select:hover {
    border-color: #0073aa;
}

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

/* Select Dropdowns */
select {
    padding-right: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23333" d="M6 8L0 2l1.41-1.41L6 5.17l4.59-4.58L12 2z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    cursor: pointer;
}

select:focus {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%230073aa" d="M6 8L0 2l1.41-1.41L6 5.17l4.59-4.58L12 2z"/></svg>');
}

/* Placeholder Styling */
::placeholder {
    color: #999;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #999;
}

::-ms-input-placeholder {
    color: #999;
}

/* Buttons */
button,
input[type="submit"],
input[type="button"],
.button,
.wp-block-button__link {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover,
.wp-block-button__link:hover {
    background-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.2);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
.button:active {
    transform: translateY(0);
}

button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
.button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

/* Search Form */
.search-form {
    position: relative;
    display: flex;
    gap: 10px;
}

.search-form label {
    flex: 1;
    margin: 0;
}

.search-form input[type="search"] {
    width: 100%;
    padding-right: 45px;
}

.search-form .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 16px;
    font-size: 14px;
}

/* WordPress Default Search Widget */
.widget_search .search-form {
    display: flex;
    gap: 0;
}

.widget_search input[type="search"] {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.widget_search .search-submit {
    position: static;
    transform: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    flex-shrink: 0;
}

/* Category Dropdown Widget */
.widget_categories select,
.widget_archive select {
    margin-top: 10px;
}

/* Checkboxes and Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #0073aa;
}

/* Labels */
label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 8px;
}

/* Form Row */
.form-row {
    margin-bottom: 20px;
}

/* Disabled State */
input:disabled,
textarea:disabled,
select:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error State */
input.error,
textarea.error,
select.error {
    border-color: #dc3545;
}

input.error:focus,
textarea.error:focus,
select.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-page-section {
    background-color: var(--color-bg-primary);
    padding: var(--spacing-xxl) var(--container-padding);
}

.contact-page-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 75% 25%;
    gap: 60px;
    align-items: start;
}

/* Left Column: Form (75%) */
.contact-form-column {
    padding-right: var(--spacing-xl);
}

.contact-form-heading {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.contact-form-description {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
}

.contact-form-wrapper {
    margin-top: var(--spacing-lg);
}

.contact-form-notice {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
}

/* Right Column: Contact Info (25%) */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #5dade2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-primary);
    font-size: 12px;
}

.contact-info-text {
    flex: 1;
    padding-top: 8px;
}

.contact-info-text a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: var(--font-size-lg);
    line-height: 1.6;
    transition: color var(--transition-base);
}

.contact-info-text a:hover {
    color: var(--color-primary);
}

.contact-info-text div {
    color: var(--color-text);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* Gravity Forms Styling in Contact Page */
.contact-form-wrapper .gform_wrapper {
    max-width: 100%;
}

.contact-form-wrapper .gform_wrapper form {
    margin: 0;
}

.contact-form-wrapper .gform_body {
    margin-bottom: var(--spacing-md);
}

/* Spacing between fields */
.contact-form-wrapper .gfield {
    margin-bottom: 20px !important;
    padding-bottom: 0 !important;
}

.contact-form-wrapper .gfield_label,
.contact-form-wrapper .gform-field-label {
    font-weight: 400;
    margin-bottom: 8px !important;
    color: #000;
    font-size: 16px;
    display: block;
}

/* Sub labels for name fields - hide them, main labels show First Name/Last Name */
.contact-form-wrapper .gform-field-label--type-sub {
    display: none;
}

/* Input containers */
.contact-form-wrapper .ginput_container {
    margin-top: 0 !important;
}

.contact-form-wrapper .ginput_container_name {
    gap: 15px !important;
}

/* All input fields - Clean design with 55px height */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper input[type="url"],
.contact-form-wrapper select {
    width: 100%;
    height: 55px !important;
    padding: 0 20px !important;
    font-size: 16px !important;
    font-family: inherit !important;
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    line-height: 55px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.contact-form-wrapper textarea {
    width: 100%;
    padding: 16px 20px !important;
    font-size: 16px !important;
    font-family: inherit !important;
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Hover state */
.contact-form-wrapper input[type="text"]:hover,
.contact-form-wrapper input[type="email"]:hover,
.contact-form-wrapper input[type="tel"]:hover,
.contact-form-wrapper input[type="url"]:hover,
.contact-form-wrapper textarea:hover,
.contact-form-wrapper select:hover {
    border-color: #0073aa !important;
}

/* Focus state - no box shadow */
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper select:focus {
    outline: none !important;
    border-color: #0073aa !important;
    box-shadow: none !important;
}

/* Textarea specific */
.contact-form-wrapper textarea {
    min-height: 180px !important;
    resize: vertical;
}

/* Select dropdown */
.contact-form-wrapper select {
    padding-right: 50px !important;
    padding-left: 20px !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="10" viewBox="0 0 14 10"><path fill="%23333" d="M7 10L0 3l1.41-1.41L7 7.17l5.59-5.58L14 3z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 14px !important;
    cursor: pointer !important;
}

.contact-form-wrapper select:focus {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="10" viewBox="0 0 14 10"><path fill="%230073aa" d="M7 10L0 3l1.41-1.41L7 7.17l5.59-5.58L14 3z"/></svg>') !important;
}

/* Placeholder styling */
.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.contact-form-wrapper input:-ms-input-placeholder,
.contact-form-wrapper textarea:-ms-input-placeholder {
    color: #999 !important;
}

.contact-form-wrapper input::-ms-input-placeholder,
.contact-form-wrapper textarea::-ms-input-placeholder {
    color: #999 !important;
}

/* All fields 100% width */
.contact-form-wrapper .gfield--width-half,
.contact-form-wrapper .gfield--width-full {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-right: 0 !important;
}

/* Fieldset for name field */
.contact-form-wrapper fieldset.gfield {
    border: none;
    padding: 0;
}

.contact-form-wrapper fieldset legend.gfield_label {
    padding: 0;
    width: auto;
}

/* Clear floats */
.contact-form-wrapper .gform_fields:after {
    content: "";
    display: table;
    clear: both;
}

/* Form footer */
.contact-form-wrapper .gform_footer {
    margin-top: var(--spacing-lg) !important;
    padding: 0 !important;
    clear: both;
}

/* Submit button */
.contact-form-wrapper .gform_button,
.contact-form-wrapper input[type="submit"] {
    background-color: var(--color-secondary) !important;
    color: var(--color-bg-primary) !important;
    padding: 12px 40px !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: var(--font-size-md) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: background-color var(--transition-base) !important;
    line-height: 1.5 !important;
}

.contact-form-wrapper .gform_button:hover,
.contact-form-wrapper input[type="submit"]:hover {
    background-color: #4a5866 !important;
}

/* Validation errors */
.contact-form-wrapper .gfield_error {
    background-color: rgba(220, 53, 69, 0.05) !important;
    padding: 12px !important;
    margin-bottom: 15px !important;
    border: 1px solid #dc3545 !important;
}

.contact-form-wrapper .gfield_error .gfield_label {
    color: #dc3545 !important;
}

.contact-form-wrapper .validation_message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 400;
}

/* Remove Gravity Forms default theme styles that conflict */
.gform_required_legend {
    display: none;
}

.gform-theme--foundation .gform_fields {
    row-gap: 10px !important;
}

.contact-form-wrapper .gform-theme {
    --gf-ctrl-border-color: #ddd !important;
}

.contact-form-wrapper .gform_fields {
    padding: 0 !important;
}

/* Override Gravity Forms grid gaps */
.contact-form-wrapper .gform-grid-row {
    gap: 15px !important;
}

.contact-form-wrapper .gform-grid-col {
    padding: 0 !important;
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */

/* Homepage Feed Sections */
.homepage-feed-section {
    padding: 60px 5% 0;
}

.feed-section-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.feed-section-title {
    font-weight: 600;
    color: #333;
    margin: 0 0 30px 0;
    text-align: left;
}

/* Feed Filters */
.feed-filters {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-btn {
    padding: 10px 24px;
    background-color: #f5f5f5;
    color: #5f6c7b;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-btn:hover {
    background-color: #e8e8e8;
    border-color: #d0d0d0;
    color: #333;
}

.filter-btn.active {
    background-color: #00a2f8;
    color: #fff;
    border-color: #00a2f8;
}

.filter-btn.active:hover {
    background-color: #0077b3;
    border-color: #0077b3;
}

/* Feed Posts Grid */
.feed-posts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.feed-posts-grid .post-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feed-posts-grid .post-card.hidden {
    display: none;
}

/* Posts Feed Heading (backward compatibility) */
.posts-feed-heading {
    font-weight: 600;
    color: #333;
    margin: 0 0 30px 0;
    text-align: left;
}

/* Title Containers - consolidated pattern */
.icon-boxes-title-container,
.tradingview-title-container {
    margin: var(--spacing-xxl) auto 0;
    padding: 0 var(--spacing-md);
    max-width: var(--container-max-width);
}

.tradingview-title-container {
    margin-bottom: 0;
}

/* TradingView Widget Section */
.tradingview-section {
    padding: 0 0 60px 0;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.tradingview-container {
    padding: 0 20px;
}

.tradingview-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: left;
}

.tradingview-widget {
    width: 100%;
    overflow: hidden;
}

/* ============================================
   FLEXIBLE PAGE LAYOUTS
   ============================================ */

.flexible-section {
    padding: var(--spacing-xxl) 0;
}

.flexible-section-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Flex Layout Base */
.flex-layout {
    display: grid;
    gap: var(--spacing-xl);
    align-items: start;
}

/* Column Content Styling */
.flex-column {
    width: 100%;
}

.flex-column h2 {
    font-size: 22px;
    margin-bottom: var(--spacing-md);
}

.flex-column h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.flex-column p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.flex-column img {
    margin-bottom: var(--spacing-md);
}

/* Full Width Layout */
.layout-full {
    grid-template-columns: 1fr;
}

/* 2 Column Layouts */
.layout-2-col {
    grid-template-columns: 1fr 1fr;
}

.layout-25-75 {
    grid-template-columns: 25fr 75fr;
}

.layout-33-66 {
    grid-template-columns: 33fr 66fr;
}

.layout-50-50 {
    grid-template-columns: 50fr 50fr;
}

.layout-66-33 {
    grid-template-columns: 66fr 33fr;
}

.layout-75-25 {
    grid-template-columns: 75fr 25fr;
}

/* 3 Column Layout */
.layout-3-col {
    grid-template-columns: repeat(3, 1fr);
}

/* 4 Column Layout */
.layout-4-col {
    grid-template-columns: repeat(4, 1fr);
}

/* Column Titles */
.flex-column-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--spacing-md) 0;
}

.flex-column-content {
    line-height: 1.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Responsive Design for Contact Page */
@media (max-width: 1024px) {
    .contact-page-container {
        grid-template-columns: 70% 30%;
        gap: 40px;
    }
    
    .contact-form-column {
        padding-right: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .contact-page-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-form-column {
        padding-right: 0;
    }
    
    .contact-form-heading {
        font-size: 26px;
    }
    
    .contact-form-description {
        font-size: var(--font-size-base);
    }
    
    .contact-info-column {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-md);
        justify-content: center;
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-lg);
        border-top: 2px solid var(--color-border-light);
    }
    
    .contact-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1 1 250px;
        max-width: 300px;
    }
    
    .contact-info-text {
        padding-top: var(--spacing-sm);
    }
    
    /* Slightly tighter spacing on mobile */
    .contact-form-wrapper .gfield {
        margin-bottom: 16px !important;
    }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
    background-color: #0d3752;
    color: #fff;
    padding: 20px 5%;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left p,
.footer-copyright-text {
    margin: 0;
    font-size: 11px;
    color: #7f8795;
    line-height: 1.6;
}

.footer-link {
    color: #7f8795;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-right {
    display: flex;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #3b6c81;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
    background-color: #4a7d94;
    transform: translateY(-2px);
}

.footer-social .social-icon i {
    font-size: 18px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1400px) {
    .posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Company page - 3 column becomes 1 on tablet, 2 column stays as 2 */
    .company-col-3 {
        grid-template-columns: 1fr;
    }
    
    /* Icon boxes - 2 columns on tablet */
    .icon-boxes-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .icon-box {
        max-height: 275px;
        height: 275px;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 70px;
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    
    .site-logo {
        order: 1;
    }
    
    /* Hide navigation by default on mobile */
    .main-navigation {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        z-index: 1000;
        overflow-y: auto;
        padding: 20px 0;
        order: 3;
    }
    
    /* Show navigation when open */
    .main-navigation.is-open {
        display: block;
    }
    
    .main-navigation ul,
    .main-navigation > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        height: auto;
    }
    
    .main-navigation li,
    .main-navigation > ul > li {
        width: 100%;
        text-align: left;
        height: auto;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .main-navigation a,
    .main-navigation > ul > li > a {
        padding: 15px 20px;
        justify-content: space-between;
        width: 100%;
        height: auto;
        border-top: none;
    }
    
    /* Mobile Dropdown Behavior */
    .main-navigation .sub-menu {
        display: none;
        position: static;
        box-shadow: none;
        background: #f9f9f9;
        min-width: 100%;
        margin-top: 0;
        padding: 0;
        border-radius: 0;
    }
    
    /* Show submenu when parent is open */
    .main-navigation .has-dropdown.submenu-open > .sub-menu {
        display: flex;
    }
    
    .main-navigation .sub-menu li {
        border-bottom: 1px solid #e8e8e8;
    }
    
    .main-navigation .sub-menu li:last-child {
        border-bottom: none;
    }
    
    .main-navigation .sub-menu a {
        padding-left: 35px;
        font-size: 14px;
    }
    
    .main-navigation .sub-menu .sub-menu a {
        padding-left: 50px;
    }
    
    /* Remove left offset for nested dropdowns on mobile */
    .main-navigation .sub-menu .sub-menu {
        left: 0;
        margin-left: 0;
        background: #f5f5f5;
    }
    
    /* Rotate dropdown arrow on mobile when submenu is open */
    .main-navigation .has-dropdown.submenu-open > a .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    /* Remove hover effects on mobile */
    .main-navigation .has-dropdown:before {
        display: none;
    }
    
    .main-navigation .has-dropdown:hover > .sub-menu {
        display: none;
    }
    
    /* Hero responsive */
    .homepage-hero {
        min-height: 200px;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero-headline {
        font-size: 28px;
    }
    
    /* Page responsive */
    .page-hero {
        min-height: 150px;
    }
    
    .page-container {
        margin: 20px auto;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .page-content p {
        font-size: 16px;
    }
    
    /* Feed responsive */
    .feed-page-container,
    .feed-page-wrapper {
        flex-direction: column;
        padding: 20px;
    }
    
    .feed-content,
    .feed-page-wrapper .feed-content,
    .feed-page-wrapper.with-sidebar .feed-content,
    .feed-page-wrapper.no-sidebar .feed-content {
        max-width: 100%;
    }
    
    .feed-sidebar {
        width: 100%;
    }
    
    .feed-post-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .feed-post-image {
        width: 100%;
    }
    
    .feed-post-title {
        font-size: 18px;
    }
    
    .feed-post-excerpt {
        font-size: 15px;
    }
    
    .feed-post-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .feed-read-more {
        align-self: flex-start;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Form elements responsive */
    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    input[type="tel"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    button,
    input[type="submit"],
    input[type="button"],
    .button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Widget tabs responsive */
    .posts-tab-button {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .recent-post-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .recent-post-no-image span {
        font-size: 24px;
    }
    
    .recent-post-title {
        font-size: 14px;
    }
    
    .recent-post-date {
        font-size: 12px;
    }
    
    /* Author page responsive */
    .author-info-section {
        padding: 30px 20px;
    }
    
    .author-info-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .author-name {
        font-size: 18px;
    }
    
    
    /* Founders page responsive */
    .founder-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .founder-left {
        align-items: center;
        text-align: center;
    }
    
    .founder-name {
        font-size: 26px;
    }
    
    .founder-description {
        font-size: 15px;
    }
    
    /* Company page responsive */
    .company-col-2,
    .company-col-3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .company-column-title {
        font-size: 20px;
    }
    
    .company-column-content {
        font-size: 15px;
    }
    
    /* Icon boxes responsive */
    .icon-boxes-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .icon-box {
        padding: 30px 25px 25px;
        max-height: 275px;
        height: 275px;
    }
    
    .icon-box-icon {
        width: 70px;
        height: 70px;
    }
    
    .icon-box-icon i {
        font-size: 32px;
    }
    
    .icon-box-title {
        font-size: 16px;
    }
    
    .icon-box-description {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .icon-box-button {
        padding: 9px 30px;
        font-size: 12px;
    }
    
    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-left p,
    .footer-copyright-text {
        font-size: 10px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Homepage sections responsive */
    .homepage-feed-section {
        padding: 40px 0;
    }
    
    .feed-section-title,
    .posts-feed-heading {
        margin-bottom: 25px;
    }
    
    .feed-filters {
        margin-bottom: 25px;
        gap: 12px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .feed-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
    
    /* Title containers responsive */
    .icon-boxes-title-container,
    .tradingview-title-container {
        margin: var(--spacing-xl) var(--container-padding);
    }
    
    /* TradingView responsive */
    .tradingview-section {
        padding: var(--spacing-xl) 0;
    }
    
    .tradingview-widget {
        margin: 0 calc(var(--spacing-sm) * -1);
    }
    
    /* Flexible layouts responsive */
    .flexible-section {
        padding: var(--spacing-xl) 0;
    }
    
    .flexible-section-container {
        padding: 0 var(--spacing-sm);
    }
    
    .flex-layout,
    .layout-full,
    .layout-2-col,
    .layout-25-75,
    .layout-33-66,
    .layout-50-50,
    .layout-66-33,
    .layout-75-25,
    .layout-3-col,
    .layout-4-col {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .flex-column h2 {
        font-size: 18px;
    }
    
    .flex-column h3 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .posts-grid,
    .feed-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-thumbnail {
        height: 200px;
    }
    
    .feed-section-title,
    .posts-feed-heading {
        margin-bottom: 20px;
    }
    
    .filter-btn {
        padding: 7px 15px;
        font-size: 12px;
    }
    
    /* Stack search form on very small screens */
    .widget_search .search-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .widget_search input[type="search"] {
        border-radius: 4px;
    }
    
    .widget_search .search-submit {
        border-radius: 4px;
    }
}

/* ==========================================================================
   My Account Page Styles
   ========================================================================== */

.my-account-page {
    background: #f5f5f5;
    min-height: 60vh;
    padding: 40px 0;
}

.my-account-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.account-greeting {
    font-size: 18px;
    color: #7f8795;
}

/* Tab Navigation */
.account-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
}

.account-tab {
    padding: 15px 30px;
    text-decoration: none;
    color: #5f6c7b;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.account-tab i {
    font-size: 14px;
}

.account-tab:hover {
    color: #00a2f8;
    border-bottom-color: #00a2f8;
}

.account-tab.active {
    color: #00a2f8;
    border-bottom-color: #00a2f8;
}

/* Subscription Content */
.subscription-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.subscription-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.subscription-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.subscription-upgrade-btn {
    white-space: nowrap;
}

.subscription-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
}

/* Detail Rows */
.subscription-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #5f6c7b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-label i {
    color: #00a2f8;
    font-size: 16px;
}

.detail-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.days-remaining {
    font-size: 14px;
    color: #7f8795;
    font-weight: normal;
}

/* Included Features */
.subscription-card h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subscription-card h3 i {
    color: #00a2f8;
}

.included-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.feature-item i {
    color: #28a745;
    font-size: 16px;
}

/* Action Buttons */
.subscription-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.subscription-action-form {
    margin: 0;
}

.pending-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px 20px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* Tracking Code Card */
.tracking-code-card {
    margin-top: 30px;
}

.tracking-code-content {
    padding: 20px;
}

.tracking-code-description {
    margin: 0 0 20px 0;
    color: #5f6c7b;
    font-size: 14px;
}

.tracking-code-display {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    border: 2px dashed #0073aa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.tracking-code-value {
    flex: 1;
    font-size: 28px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #0073aa;
    letter-spacing: 2px;
}

.copy-tracking-code {
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.copy-tracking-code:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.copy-tracking-code i {
    font-size: 16px;
}

.tracking-code-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tracking-code-input-section {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Profile Content */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-card-header h2 {
    margin: 0;
    font-size: 24px;
}

.profile-card h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
    padding-bottom: 15px;
}

/* Profile Messages */
.profile-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 600;
    color: #5f6c7b;
    width: 200px;
}

.profile-value {
    color: #333;
    flex: 1;
}

/* Profile Edit Form */
.profile-edit-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.form-description {
    margin: 0;
    color: #7f8795;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #5f6c7b;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00a2f8;
    box-shadow: 0 0 0 3px rgba(0, 162, 248, 0.1);
}

.form-group small {
    color: #7f8795;
    font-size: 13px;
}

.form-actions {
    display: flex;
    gap: 15px;
    padding-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .account-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .account-tab {
        border-bottom: 1px solid #e8e8e8;
        border-left: 3px solid transparent;
    }
    
    .account-tab.active {
        border-left-color: #00a2f8;
        border-bottom-color: #e8e8e8;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .profile-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .profile-label {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tracking-code-display {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tracking-code-value {
        font-size: 20px;
        text-align: center;
        word-break: break-all;
    }
    
    .copy-tracking-code {
        width: 100%;
        justify-content: center;
    }
    
    .tracking-code-input-section {
        flex-direction: column;
    }
    
    .tracking-code-input-section input {
        width: 100%;
    }
    
    .tracking-code-input-section button {
        width: 100%;
    }
}