/* 
 * IPG Oil & Gas Group Premium Design System
 * Curated color schemes, corporate typography, card layout models, and glassmorphic overlays.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Main Theme variables (IPG Deep Green focused) */
    --theme-primary: #072e1b;       /* Deep Forest Green */
    --theme-primary-rgb: 7, 46, 27;
    --theme-primary-light: #0d4629;
    --theme-secondary: #0b3149;     /* Petroleum Deep Blue */
    --theme-secondary-rgb: 11, 49, 73;
    --theme-accent: #d4af37;        /* Metallic Gold Accent */
    --theme-accent-hover: #bda031;
    
    /* Global Neutral Variables */
    --color-dark: #121815;          /* Rich Charcoal */
    --color-dark-light: #1c2420;
    --color-light: #f4f7f5;         /* Soft Off-White */
    --color-white: #ffffff;
    --color-grey: #6c7a72;
    --color-silver: #e2e8e5;
    
    /* Layout Tokens */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* NOG Petroleum Blue Subtheme Override - activated by class .theme-nog */
.theme-nog {
    --theme-primary: #0b3149;       /* Petroleum Deep Blue */
    --theme-primary-rgb: 11, 49, 73;
    --theme-primary-light: #164663;
    --theme-secondary: #072e1b;     /* Deep Green */
    --theme-secondary-rgb: 7, 46, 27;
    --theme-accent: #0dcaf0;        /* Cyan Blue Accent */
    --theme-accent-hover: #0baccc;
    --color-dark: #080f14;          /* Darker Ocean Slate */
    --color-dark-light: #111b22;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--theme-primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Header & Premium Navbar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.theme-nog .site-header {
    background: rgba(var(--theme-primary-rgb), 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

.site-header.scrolled .header-container {
    padding: 0.65rem 2rem;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-nog .logo-text {
    background: linear-gradient(135deg, #ffffff, var(--theme-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-grey);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--theme-accent);
    transition: var(--transition);
}

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

.theme-nog .nav-link:hover, .theme-nog .nav-link.active {
    color: #ffffff;
}

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

/* Call To Action Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--theme-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(var(--theme-primary-rgb), 0.2);
}

.btn-primary:hover {
    background-color: var(--theme-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--theme-primary-rgb), 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff !important;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--theme-primary) !important;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--theme-accent);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-accent i, .btn-accent span {
    color: #ffffff !important;
}

.btn-accent:hover {
    background-color: var(--theme-accent-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
}

.theme-nog .btn-secondary {
    color: #ffffff !important;
    border-color: #ffffff;
}

.theme-nog .btn-secondary:hover {
    background-color: #ffffff;
    color: var(--theme-primary) !important;
}

/* Hamburger mobile button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--theme-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.theme-nog .mobile-toggle span {
    background-color: #ffffff;
}

/* Premium Hero Grids */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.97), rgba(var(--theme-secondary-rgb), 0.95)), 
                url('../images/ipg-hero.jpg') no-repeat center center/cover;
    padding-top: 100px;
    color: var(--color-white);
    overflow: hidden;
}

.theme-nog .hero-section {
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.97), rgba(0, 0, 0, 0.9)), 
                url('../images/nog-truck.jpg') no-repeat center center/cover;
}

/* Corporate Diagonal Accent Backgrounds */
.hero-section::before {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 60%;
    height: 70%;
    background: rgba(255, 255, 255, 0.02);
    transform: skewY(-12deg);
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
    z-index: 10;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-label {
    display: inline-block;
    color: var(--theme-accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    border-left: 3px solid var(--theme-accent);
    padding-left: 10px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-silver);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Floating Cinematic Cards Grid on Hero Right side */
.hero-visual {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    max-width: 400px;
}

.glass-card-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--theme-accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-silver);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections Global Styles */
.section {
    padding: 7rem 2rem;
    position: relative;
}

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.section-dark h2, .section-dark h3 {
    color: var(--color-white);
}

.section-header {
    max-width: 750px;
    margin: 0 auto 5rem auto;
    text-align: center;
}

.section-label {
    color: var(--theme-accent);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--color-grey);
    font-size: 1.05rem;
}

.section-dark .section-subtitle {
    color: var(--color-silver);
}

/* About 4 Premium Cards Grid */
.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.premium-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 3rem 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-bottom: 4px solid var(--theme-primary);
    position: relative;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.05), transparent);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    border-radius: var(--border-radius-md);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-bottom-color: var(--theme-accent);
}

.premium-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(var(--theme-primary-rgb), 0.08);
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.premium-card:hover .card-icon {
    background-color: var(--theme-accent);
    color: var(--color-dark);
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.card-text {
    color: var(--color-grey);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Services Page Card layouts */
.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

.service-block {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.05);
}

.service-block:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.service-img-wrapper {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-block:hover .service-img-wrapper img {
    transform: scale(1.08);
}

.service-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.service-category {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background-color: var(--theme-accent);
    color: var(--color-dark);
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.service-info {
    padding: 2.5rem 2rem;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--theme-primary);
}

.service-desc {
    color: var(--color-grey);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-specs {
    list-style: none;
    margin-bottom: 2rem;
}

.service-specs li {
    font-size: 0.9rem;
    color: var(--color-dark-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-specs li::before {
    content: '✓';
    color: var(--theme-accent);
    font-weight: bold;
}

/* HSE Policy Layout */
.hse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}
.hse-grid > * {
    min-width: 0;
}

.hse-list-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hse-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--theme-accent);
    transition: var(--transition);
}

.hse-card:hover {
    transform: translateX(5px);
}

.hse-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.hse-text {
    color: var(--color-grey);
    font-size: 0.9rem;
}

/* Premium Investment & Stats table */
.nog-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.nog-stats-table th {
    background-color: var(--theme-primary);
    color: var(--color-white);
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: left;
}

.nog-stats-table td {
    padding: 1.25rem 1.5rem;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-silver);
    font-weight: 600;
}

.nog-stats-table tr:last-child td {
    border-bottom: none;
}

.nog-stats-table tr:nth-child(even) td {
    background-color: rgba(var(--theme-primary-rgb), 0.02);
}

.investment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.invest-level-card {
    background-color: var(--color-dark-light);
    color: var(--color-white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.invest-level-card:hover {
    transform: translateY(-5px);
    border-color: var(--theme-accent);
}

.invest-capacity {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--theme-accent);
    margin-bottom: 0.5rem;
}

/* Contact page structures */
.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-card-info {
    background-color: var(--theme-primary);
    color: var(--color-white);
    padding: 4rem 1.75rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card-info h3 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-details {
    display: flex;
    gap: 1rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--theme-accent);
}

.info-text p:first-child {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-silver);
}

.info-text p:last-child {
    font-size: 1.05rem;
}

.contact-form-wrapper {
    background-color: var(--color-white);
    padding: 4rem 1.75rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
}

.contact-form-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--theme-primary);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-silver);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--color-light);
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--theme-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(var(--theme-primary-rgb), 0.05);
}

.form-checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--color-grey);
}

.form-checkbox input {
    margin-top: 3px;
}

/* Footer elements */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 5rem 2rem 2rem 2rem;
    border-top: 5px solid var(--theme-accent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-desc {
    color: var(--color-silver);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-title {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--theme-accent);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--color-silver);
    font-size: 0.95rem;
}

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

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--color-silver) !important;
    transition: var(--transition);
}

.footer-socials a:hover {
    border-color: var(--theme-accent);
    background-color: var(--theme-accent);
    color: #ffffff !important;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--color-grey);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-visual {
        height: auto;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.8rem 1rem !important;
    }
    .site-header.scrolled .header-container {
        padding: 0.6rem 1rem !important;
    }
    .mobile-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-white);
        flex-direction: column;
        padding: 3rem;
        gap: 2rem;
        transition: var(--transition);
        align-items: flex-start;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
    .theme-nog .nav-menu {
        background-color: var(--color-dark-light);
    }
    .nav-menu.active {
        left: 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .section {
        padding: 5rem 1.5rem;
    }
    .hse-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Premium Layout Grids */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nog-highlight-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive grid overrides */
@media (max-width: 1024px) {
    .about-intro-grid, .nog-highlight-grid, .about-split-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .calculator-grid > div {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0 !important;
        padding-bottom: 1.5rem;
    }
    .calculator-grid > div:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* =========================================================
 * PDF Download Section
 * ========================================================= */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.download-card {
    background: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 1px solid rgba(var(--theme-primary-rgb), 0.07);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--theme-primary), var(--theme-accent));
    border-radius: 3px 0 0 3px;
}

.download-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(var(--theme-primary-rgb), 0.15);
}

.download-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.download-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-light, var(--theme-secondary)));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--theme-accent);
    box-shadow: 0 6px 18px rgba(var(--theme-primary-rgb), 0.25);
}

.download-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.download-card-meta .doc-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--theme-accent);
    font-family: var(--font-heading);
}

.download-card-meta h3 {
    font-size: 1.1rem;
    color: var(--theme-primary);
    line-height: 1.3;
    margin: 0;
}

.download-card p {
    color: var(--color-grey);
    font-size: 0.92rem;
    line-height: 1.65;
    flex-grow: 1;
}

.download-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--color-silver);
}

.download-card-footer .file-size {
    font-size: 0.8rem;
    color: var(--color-grey);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-light, var(--theme-secondary)));
    color: var(--color-white) !important;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), 0.3);
    text-decoration: none;
}

.btn-download:hover {
    opacity: 0.88;
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(var(--theme-primary-rgb), 0.4);
}

.btn-download i {
    font-size: 0.9rem;
}

/* NOG dark-theme variant of download cards */
.theme-nog .download-card {
    background: var(--color-dark-light);
    border-color: rgba(255,255,255,0.05);
    color: #cbd5e1;
}

.theme-nog .download-card p {
    color: #94a3b8;
}

.theme-nog .download-card-meta h3 {
    color: #ffffff;
}

.theme-nog .download-card-footer {
    border-top-color: rgba(255,255,255,0.07);
}

.theme-nog .download-card-footer .file-size {
    color: #64748b;
}

@media (max-width: 640px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}
