/* ==============================
   Tabs Container - 3 Columns
   ============================== */
body .instruments-tabs-list.three-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 0 !important;
}

.instruments-tabs-list.three-columns .inst-tab-item {
    text-align: center;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.instruments-tabs-list.three-columns .inst-tab-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.inst-tab-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    color: inherit !important;
}

.inst-tab-link.active {
    background-color: #00ae8d !important;
    color: #fff !important;
    border-color: #00ae8d !important;
}

.inst-tab-link:hover {
    border-color: #00ae8d !important;
    color: #00ae8d !important;
}

.tab-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 15px 0 25px;
}
.tab-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    transform: translate(-50%, -50%);
    border: 2px dashed #00ae8d;
    border-radius: 50%;
    z-index: 1;
    animation: rotateCircle 20s linear infinite;
}
.tab-icon-wrapper img.tab-icon {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

@keyframes rotateCircle {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.tab-icon {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important;
    margin-bottom: 20px !important;
}

.tab-title {
    font-size: 16px !important;
    font-weight: 600 !important;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #00ae8d;
    font-weight: 600;
    text-decoration: underline;
}
.read-more:hover {
    color: #007a5e;
}

/* ==============================
   Instruments List (rows)
   ============================== */
.instruments-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
}

.instrument-row {
    display: flex !important;
    align-items: center !important;
    gap: 35px !important;
    padding: 20px 0 30px 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

.instrument-image {
    flex: 0 0 35% !important;
    max-width: 35% !important;
}
.instrument-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
    display: block !important;
    object-fit: contain !important;
    margin-bottom: 8px !important;
}
.instrument-image .extra-img {
    margin-top: 8px !important;
    opacity: 0.95 !important;
}

.instrument-info {
    flex: 1 !important;
    font-size: 0.95em !important;
    line-height: 1.6 !important;
}

.instrument-title {
    font-size: 1.2em !important;
    margin-bottom: 8px !important;
    padding: 5px 10px !important;
    color: #fff !important;
    background: #62ab8e !important;
    border-radius: 5px !important;
    display: inline-block !important;
    font-weight: 400 !important;
}

.instrument-info .description {
    color: #555 !important;
    margin-bottom: 10px !important;
    font-style: italic !important;
}

.instrument-info .application,
.instrument-info .features,
.instrument-info .material {
    margin-bottom: 6px !important;
}

.instrument-info h4 {
    font-size: 15px !important;
    margin-bottom: 5px !important;
}

.instrument-info ul {
    list-style: none !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
}
.instrument-info ul > li {
    margin: 5px 0 !important;
    padding-left: 20px !important;
    position: relative !important;
}
.instrument-info ul > li:before {
    content: '';
    width: 6px !important;
    height: 6px !important;
    background-color: #00ae8d !important;
    position: absolute !important;
    left: 0 !important;
    top: 10px !important;
    transform: rotate(45deg) !important;
    border-radius: 2px !important;
}

/* ==============================
   Instruments Archive Grid (Cards)
   ============================== */
.instruments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 40px 0;
    align-items: stretch;
}
.instrument-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.25s ease;
}
.instrument-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background-color: #00ae8d;
    transition: width 0.5s ease;
}
.instrument-card:hover::after {
    width: 100%;
}
.instrument-card-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
}
.instrument-card:hover {
    transform: translateY(-6px);
}
.instrument-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.instrument-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.instrument-card-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 20px 20px 30px 20px;
	background: #f7f7f7;
}
.instrument-card-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #222;
}
.instrument-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1 1 auto;
}
.instrument-card-content .read-more {
    margin-top: auto;
    align-self: flex-start;
    color: #00ae8d;
    font-weight: 600;
    text-decoration: none;
}

/* ==============================
   Single Instrument
   ============================== */


.gord-instrument-inner {
    padding-top: 50px;
}

.gord-instrument-icon img {
    max-height: 150px;
    width: auto;
}

/* Top row: Side1 + Side2 */
.gord-instrument-contents .top-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch; /* equal height sides */
	margin-bottom: 50px;
}

/* Each side 50% width minus half gap */
.gord-instrument-contents .top-row .side1,
.gord-instrument-contents .top-row .side2 {
    flex: 0 0 calc(50% - 10px);
    box-sizing: border-box;
}

.gord-instrument-contents .top-row .side1 {
    background: #00ab8e2b;
	border-radius: 15px;
    padding: 2.6em 5em 2.6em 2.6em;	
}

p.inst-desc{margin:40px 0 20px 0;}

.gord-instrument-contents .top-row .side2 .gord-instrument-media img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
	padding:0 3em;
}

.gord-instrument-contents h1 {
    margin-bottom: 15px;
    font-weight: 400;
}

/* Rows container */
.gord-instrument-rows-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gord-instrument-rows-container .gord-instrument-row {
    flex: 1;
    background-color: #f7f7f7;
    border-radius: 15px;
    padding: 1em 2.6em;
    color: #333f48;
    position: relative;
    margin-bottom: 15px;
}

/* Custom bullets for lists */
.gord-instrument-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.gord-instrument-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.gord-instrument-text ul li::before {
    content: "\f00c";
    font-family: 'FontAwesome';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #00ae8d;
    font-size: 10px;
}

.gord-instrument-text h3 {
    position: relative;
    padding-bottom: 8px;
    font-weight: 400;
    margin-bottom: 20px;
}

.gord-instrument-text h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: #00ae8d;
}


/* ==============================
   Breadcrumbs
   ============================== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 30px;
    gap: 5px;
    text-align: right;
}

.breadcrumb a {
    color: #00ae8d;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #007a5e;
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 5px;
    color: #999;
}

.breadcrumb .active {font-weight: 400;}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 1024px) {
    body .instruments-tabs-list.three-columns {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .instruments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .gord-instrument-contents .top-row {
        flex-direction: column;
        gap: 15px;
    }
    .gord-instrument-contents .top-row .side1,
    .gord-instrument-contents .top-row .side2 {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body .instruments-tabs-list.three-columns {
        grid-template-columns: 1fr !important;
    }
    .instrument-row {
        flex-direction: column !important;
    }
    .instrument-image,
    .instrument-info {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    .instruments-grid {
        grid-template-columns: 1fr;
    }
    .instrument-card-link {
        height: auto;
    }
	
	.gord-instrument-rows-container {
        display: block; /* stop flex on mobile */
        margin-bottom: 20px; /* keep spacing between containers if needed */
    }
	
	 .gord-instrument-rows-container .gord-instrument-row {
        width: 100%;
        display: block;
        margin: 0 0 20px 0; /* optional spacing between rows */
    }

    .gord-instrument-row .inst-inner-sec {
        display: flex;
        flex-direction: column; /* stack icon above text */
        align-items: flex-start; /* optional: align text left */
    }

    .gord-instrument-row .gord-instrument-icon {
        margin-bottom: 10px; /* spacing between icon and text */
    }

    .breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
}