/* Sort buttons */
.sort-buttons {
    display: none;
}

.sort-buttons-mobile {
    display: none;
}

@media (max-width: 1345px) {
    .sort-buttons-mobile {
        display: flex !important;
        gap: 10px;
        margin-bottom: 20px;
        padding: 0 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sort-buttons-mobile::-webkit-scrollbar {
        display: none;
    }
}

.sort-button {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sort-button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

@media (min-width: 1346px) {
    .sort-buttons-mobile {
        display: none !important;
    }
}

/* CSS Variables */
:root {
    --primary-color: #fdea7c;
    --secondary-color: #FFA500;
    --accent-color: #fdea7c;
    --background-color: #ffffff;
    --text-color: #1a1a1a;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --border-color: #dfe4eb;
    --blue50: #f6f6f8;
    --blue100: #ededf0;
    --blue200: #d2d3da;
    --blue300: #b7b8c3;
    --blue400: #808396;
    --blue500: #306bea;
    --blue600: #43465f;
    --blue700: #383b4f;
    --blue800: #2c2f3f;
    --blue900: #242633;
    --gradient-primary: linear-gradient(135deg, #6C5CE7 0%, #8A7FF0 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: 70px; /* Matcha headerns höjd */
}

/* Base header styles */
header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    box-shadow: 5 2px 2px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.navbar {
    padding: 0.5rem 0 !important;
    background-color: white !important;
    box-shadow: 0 0px 0px rgba(0,0,0,0.1) !important;
}

.navbar-brand {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.navbar-brand img {
    max-height: 100px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    display: block;
}

.nav-item {
    position: relative !important;
    margin: 0 0.25rem !important;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500 !important;
    padding: 0.75rem 1rem !important;
    transition: color 0.2s ease !important;
    position: relative !important;
}

.nav-link:hover {
    color: #FFC107 !important;
}

.nav-link::after {
    content: '' !important;
    position: absolute !important;
    width: 0 !important;
    height: 2px !important;
    bottom: 0 !important;
    left: 50% !important;
    background-color: var(--primary-color) !important;
    transition: all 0.3s ease !important;
    transform: translateX(-50%) !important;
}

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

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

/* Dropdown styles */
.dropdown-toggle::after {
    margin-left: var(--spacing-sm);
    vertical-align: middle;
}

.dropdown-menu {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem !important;
}

.dropdown-item {
    padding: 0.6rem 1.5rem !important;
    color: #333 !important;
    font-weight: 400 !important;
    transition: all 0.2s ease !important;
}

.dropdown-item:hover {
    background-color: #FFF8E1 !important;
    color: #FFC107 !important;
}

.dropdown-item.active {
    background-color: #FFF8E1 !important;
    color: #FFC107 !important;
    font-weight: 500 !important;
}

/* Dropdown animations */
@media (min-width: 992px) {
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease;
    }

    .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.navbar-toggler {
    border: none !important;
    padding: 0.5rem !important;
    display: none !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.navbar-toggler:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.navbar-toggler span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background-color: #333 !important;
    margin: 3px 0 !important;
    transition: all 0.3s ease !important;
    border-radius: 1px !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Hamburger animation när menyn är öppen */
.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0 !important;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px) !important;
}

/* Mobile header adjustments */
@media (max-width: 991px) {
    .navbar-toggler {
        display: flex !important;
    }
    
    /* Ensure proper spacing between logo and hamburger */
    .navbar .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .navbar-brand {
        margin: 0 !important;
        flex-shrink: 0 !important;
        order: 1 !important;
    }
    
    .navbar-toggler {
        margin: 0 !important;
        flex-shrink: 0 !important;
        order: 2 !important;
    }
    
    .navbar-collapse {
        order: 3 !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    header {
        height: 60px;
    }
    
    body {
        padding-top: 60px;
    }
    
    .navbar-brand img {
        max-height: 85px !important;
        width: auto !important;
        height: auto !important;
    }
    
    nav {
        padding: 0 0px;
    }

    .navbar-toggler {
        width: 25px;
        height: 25px;
    }

    .navbar-toggler span {
        width: 18px;
        margin: 1px 0;
    }
}

@media (max-width: 480px) {
    header {
        height: 50px;
    }
    
    body {
        padding-top: 50px;
    }
    
    .navbar-brand {
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        height: 48px !important;
        flex-shrink: 0 !important;
    }
    
    .navbar-brand img {
        max-height: 75px !important;
        width: auto !important;
        height: auto !important;
        margin: 0;
        display: block;
    }
    
    nav {
        padding: 0 10px;
    }

    .navbar-toggler {
        width: 22px;
        height: 22px;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .navbar-toggler span {
        width: 16px;
    }
}

/* Filter styles */
.filter-toggle {
    display: none;
}

.filter-toggle button {
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-toggle button i {
    font-size: 14px;
}

/* Filter sektion */
.filters {
    background: #FFD700;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 100px;
    height: fit-content;
    width: 250px;
}

.filter-header {
    display: none;

}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

/* Filter close - dold på desktop */
.filter-close {
    display: none;
    position: sticky;
    top: 0;
    right: 0;
    padding: 15px;
    background: #fff;
    z-index: 1001;
    cursor: pointer;
}

/* Tablet layout */
@media (max-width: 1024px) {
    /* Tablet och mindre desktop */
    .comparison-section {
        margin: 1.5rem auto;
        padding: 0 0.5rem;
    }

    .comparison-container {
        grid-template-columns: 1fr; /* Fullbredd */
        gap: 20px;
        padding: 15px;
    }

    .filters {
        position: static;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Mindre tablets */
    .comparison-section {
        margin: 1rem auto;
        padding: 0 0.25rem;
    }

    .comparison-container {
        padding: 10px;
        gap: 15px;
    }

    .filter-toggle {
        display: block;
        margin-bottom: 15px;
    }

    .filter-toggle button {
        width: 100%;
        padding: 12px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 14px;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
    }

    .filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background: #fff;
        margin: 0;
        padding: 0;
        overflow-y: auto;
    }

    .filters.show {
        display: block;
    }

    .filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #ddd;
    }

    .filter-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 500;
    }

    .filter-header button {
        border: none;
        background: none;
        font-size: 24px;
        padding: 8px;
        cursor: pointer;
    }

    .filter-group {
        padding: 15px 20px;
        margin-bottom: 0;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 480px) {
    /* Mobil */
    .comparison-section {
        margin: 0.5rem auto;
        padding: 0;
    }

    .comparison-container {
        padding: 8px;
        gap: 12px;
    }

    .filter-toggle button {
        padding: 10px;
        font-size: 13px;
    }

    .filters {
        padding: 0;
    }

    .filter-header {
        padding: 12px 15px;
    }

    .filter-group {
        padding: 12px 15px;
    }

    .filter-group select {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* Subscription grid */
.subscription-grid {
    display: grid;
    gap: 20px;
}

/* Subscription cards container */
.subscription-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Subscription container (used in index.php) */
.subscription-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Target buttons container */
.target-buttons-container {
    width: 100%;
}

.target-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.target-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.target-btn.active {
    background: #FFD700;
    border-color: #FFD700;
    color: #333;
}

.target-btn:hover {
    background: #FFD700;
    border-color: #FFD700;
    color: #333;
}

/* Load more section */
.load-more-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Fixed subscription cards - consolidated styles */
.subscription-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.column-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Logo section */
.company-logo-column {
    width: 90px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.company-logo-column img {
    max-height: 30px;
    width: auto;
    object-fit: contain;
    margin-bottom: 5px;
}

.operator-name {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.2rem;
    text-align: center;
    font-weight: 500;
}

/* Info columns */
.info-columns {
    display: flex;
    gap: 2rem;
}

.info-column {
    text-align: center;
    min-width: 85px;
}

.info-label {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.info-value {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Price section */
.price-column {
    width: 130px;
    flex-shrink: 0;
    text-align: right;
    margin-left: auto;
}

.price-current {
    font-size: 0.95rem;
    font-weight: bold;
}

.price-original {
    font-size: 0.75rem;
    color: #666;
}

/* Button section */
.button-column {
    width: 100px;
    flex-shrink: 0;
}

.action-button {
    background: var(--primary-color) !important;
    color: #222 !important;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
    display: inline-block;
    border: none;
}
.action-button:hover {
    background: #ffd600 !important;
    color: #222 !important;
}
@media (max-width: 600px) {
    .action-button {
        background: var(--primary-color) !important;
        color: #222 !important;
        border: none;
    }
    .action-button:hover {
        background: #ffd600 !important;
        color: #222 !important;
    }
}

.target-group-badge {
    position: absolute;
    top: 10px;
    right: 30px;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.target-group-badge.student {
    background-color: #4CAF50;
    color: white;
}

.target-group-badge.youth {
    background-color: #2196F3;
    color: white;
}

.target-group-badge.senior {
    background-color: #9C27B0;
    color: white;
}

.target-group-badge.family {
    background-color: #FF9800;
    color: white;
}

.target-group-badge.standard {
    background-color: #FFC107;
    color: #333;
}

/* Mobile responsive design - completely rewritten */
@media (max-width: 768px) {
    .subscription-container {
        gap: 15px;
    }

    .subscription-cards {
        gap: 8px;
    }

    .target-buttons {
        gap: 8px;
        padding: 0 10px;
    }

    .target-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .subscription-card {
        padding: 12px;
        margin-bottom: 0;
        border-radius: 6px;
    }

    .column-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    /* Header row with logo and operator name */
    .company-logo-column {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-right: 0;
        width: auto;
    }

    .company-logo-column img {
        max-width: 50px;
        margin-bottom: 0;
    }

    .operator-name {
        font-size: 0.7rem;
        margin-top: 0;
        text-align: right;
    }

    /* Info grid - 2 columns */
    .info-columns {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        width: 100%;
    }

    .info-column {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 8px;
        background: #f8f8f8;
        border-radius: 4px;
        min-width: auto;
    }

    .info-label {
        margin-bottom: 0;
        font-size: 0.7rem;
        color: #666;
    }

    .info-value {
        font-size: 0.75rem;
        font-weight: 500;
        color: #333;
    }

    /* Price and button row */
    .price-column {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin: 0;
        text-align: left;
    }

    .price-current {
        font-size: 0.9rem;
        font-weight: bold;
    }

    .price-original {
        font-size: 0.7rem;
        color: #666;
    }

    .button-column {
        width: auto;
        margin-left: auto;
    }

    .action-button {
        display: inline-block;
        padding: 6px 12px;
        font-size: 0.7rem;
        border-radius: 4px;
        white-space: nowrap;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .subscription-container {
        gap: 12px;
    }

    .subscription-cards {
        gap: 6px;
    }

    .target-buttons {
        gap: 6px;
        padding: 0 8px;
    }

    .target-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .subscription-card {
        padding: 10px;
    }

    .column-container {
        gap: 6px;
    }

    .company-logo-column {
        gap: 8px;
    }

    .company-logo-column img {
        max-width: 40px;
    }

    .operator-name {
        font-size: 0.65rem;
    }

    /* Single column info on very small screens */
    .info-columns {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .info-column {
        padding: 4px 6px;
    }

    .info-label {
        font-size: 0.65rem;
    }

    .info-value {
        font-size: 0.7rem;
    }

    /* Stack price and button vertically */
    .price-column {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .price-current {
        font-size: 0.85rem;
    }

    .price-original {
        font-size: 0.65rem;
    }

    .button-column {
        margin-left: 0;
        margin-top: 4px;
        width: 100%;
    }

    .action-button {
        width: 100%;
        text-align: center;
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .target-group-badge {
        top: 15px;
        right: 55px;
        padding: 1px 4px;
        font-size: 9px;
    }
}

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

/* Category boxes responsive */
.category-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #ffd700; /* Default yellow color */
}

/* Specific colors for each category */
.category-box:nth-child(1) {
    background-color: #ffd700 !important; /* Guldgul */
}

.category-box:nth-child(2) {
    background-color: #ffeb3b !important; /* Ljusgul */
}

.category-box:nth-child(3) {
    background-color: #ffc107 !important; /* Amber */
}

.category-box:nth-child(4) {
    background-color: #ffa000 !important; /* Orangegul */
}

.category-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-box:hover::before {
    opacity: 1;
}

.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.category-box img {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    filter: none; /* Ta bort filter för att visa originalfärger */
    opacity: 1;
}

.category-box:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.category-box h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 2;
    color: #333; /* Mörk text för bättre läsbarhet */
    text-shadow: none; /* Ta bort textskugga */
}

@media (max-width: 991px) {
    .category-boxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .category-boxes {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-box {
        padding: 25px 15px;
    }

    .category-box img {
        width: 48px;
        height: 48px;
    }

    .category-box h3 {
        font-size: var(--text-base);
    }
}

/* Hero section responsive */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 40px 15px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
}

@media (max-width: 991px) {
    .hero {
        padding: 30px 15px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 20px 15px;
    }

    .hero-content h2 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 15px 10px;
    }

    .hero-content h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 13px;
    }
}

/* Load more button styles */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 15px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.load-more-btn {
    background-color: #ffc107;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #ffca2c;
    color: #000;
}

.load-more-btn.no-more {
    cursor: default;
    opacity: 0.7;
}

.load-more-btn.no-more:hover {
    background-color: #ffc107;
}

.load-more-button {
    background-color: #fdea7c;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: #000;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

.load-more-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.load-more-button:active {
    transform: translateY(0);
}

.load-more-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.no-more-subscriptions {
    color: var(--blue400);
    font-size: 0.9rem;
    text-align: center;
    padding: 10px 20px;
    background: var(--blue50);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    max-width: 300px;
    margin: 0 auto;
}

/* Footer styles - Removed to avoid conflicts with assets/css/style.css */

/* Comparison Section */
.comparison-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comparison-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    width: 100%;
}

.subscription-grid.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.subscription-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Endast nödvändiga fixes */
/* Subscription card styles merged with main declaration around line 378 */

/* Endast rundade hörn på knappen */
.subscription-card .action-button {
    border-radius: 25px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-operator-logo {
    height: 40px;
    width: auto;
}

.modal-title {
    font-size: 24px;
    margin: 0;
}

.modal-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.modal-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.modal-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.detail-label {
    color: #666;
}

.detail-value {
    font-weight: 500;
}

.total {
    margin-top: 15px;
    font-weight: bold;
}

.compare {
    background-color: #e8f0fe;
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
}

.modal-footer {
    margin-top: 30px;
    text-align: center;
}

.modal-action-button {
    display: inline-block;
    background-color: #fdea7c;
    color: #333;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
}

/* Responsiv design */
@media (max-width: 1024px) {
    /* Tablet och mindre desktop */
    .comparison-container {
        grid-template-columns: 1fr; /* Fullbredd */
    }
}

@media (max-width: 768px) {
    /* Mindre tablets */
    /* Styles already defined earlier */
}

@media (max-width: 480px) {
    /* Mobil */
    /* Styles already defined earlier */
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
        padding: 1rem !important;
        margin-top: 0.5rem !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        animation: slideDown 0.3s ease-out !important;
        border: 1px solid #eee !important;
    }

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

    .nav-item {
        margin: 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .nav-item:last-child {
        border-bottom: none !important;
    }

    .nav-link {
        padding: 1rem 1rem !important;
        color: #333 !important;
        font-weight: 500 !important;
        transition: all 0.2s ease !important;
    }

    .nav-link:hover {
        background-color: #f8f9fa !important;
        color: #FFC107 !important;
    }

    .nav-link::after {
        display: none !important;
    }

    /* Dropdown-menyer på mobil */
    .dropdown-menu {
        display: block !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding-left: 1rem !important;
        margin-top: 0 !important;
        background: transparent !important;
        border: none !important;
        position: static !important;
        transform: none !important;
        border-top: 1px solid #eee !important;
    }

    .dropdown-toggle::after {
        display: inline-block !important;
        float: right !important;
        margin-top: 8px !important;
        transition: transform 0.2s ease !important;
    }

    .dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg) !important;
    }

    .dropdown-item {
        padding: 0.75rem 1rem !important;
        color: #666 !important;
        font-weight: 400 !important;
        transition: all 0.2s ease !important;
    }

    .dropdown-item:hover {
        background-color: #f8f9fa !important;
        color: #FFC107 !important;
    }

    .dropdown-item.active {
        background-color: #FFC107 !important;
        color: #333 !important;
    }

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

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .load-more-container {
        margin-top: 15px;
        padding: 10px;
    }

    .load-more-button {
        max-width: 250px;
        padding: 8px 16px;
        font-size: 14px;
    }

    .no-more-subscriptions {
        max-width: 250px;
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .load-more-container {
        margin-top: 10px;
        padding: 8px;
    }

    .load-more-button {
        max-width: 200px;
        padding: 6px 12px;
        font-size: 13px;
    }

    .no-more-subscriptions {
        max-width: 200px;
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* CSS from index.php - Subscription Container and Cards */
.subscription-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subscription-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.load-more-section {
    width: 100%;
    text-align: center;
    margin: 30px 0;
    padding: 0 15px;
}

.load-more-btn {
    background-color: #ffc107;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #ffca2c;
    color: #000;
}

.load-more-btn.no-more {
    cursor: default;
    opacity: 0.7;
}

.load-more-btn.no-more:hover {
    background-color: #ffc107;
}

/* Target Buttons Styling */
.target-buttons-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin: 20px 0;
}

.target-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.target-btn {
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.target-btn:hover {
    border-color: #ffc107;
    color: #ffc107;
}

.target-btn.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .target-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Benefits Section */
.benefits-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Operators Section */
.operators-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.operators-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.operators-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.operators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.operator-card {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.operator-card:hover {
    transform: translateY(-5px);
}

.operator-card img {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.operator-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.operator-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .benefits-grid,
    .faq-grid,
    .operators-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card,
    .faq-item,
    .operator-card {
        padding: 20px;
    }
}

/* Content Section Styles - Student Page */
.content-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    min-height: 100vh;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper h1 {
    font-size: 3rem;
    color: #1a237e;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-wrapper h2 {
    font-size: 2.4rem;
    color: #2c3e50;
    margin: 50px 0 25px 0;
    font-weight: 600;
    line-height: 1.3;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    display: inline-block;
}

.content-wrapper h3 {
    font-size: 1.8rem;
    color: #34495e;
    margin: 35px 0 20px 0;
    font-weight: 600;
    line-height: 1.4;
}

.intro-text {
    font-size: 1.3rem;
    color: #5a6c7d;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Info Section */
.info-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border-left: 5px solid #3498db;
}

.info-section p {
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.info-section li {
    padding: 12px 0;
    color: #5a6c7d;
    line-height: 1.6;
    position: relative;
    padding-left: 35px;
    font-size: 1.05rem;
    border-bottom: 1px solid #ecf0f1;
}

.info-section li:last-child {
    border-bottom: none;
}

.info-section li:before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    background: #e8f5e8;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tips Section */
.tips-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border-left: 5px solid #e74c3c;
}

.tips-section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tips-section li {
    padding: 12px 0;
    color: #5a6c7d;
    line-height: 1.6;
    position: relative;
    padding-left: 35px;
    font-size: 1.05rem;
    border-bottom: 1px solid #ecf0f1;
}

.tips-section li:last-child {
    border-bottom: none;
}

.tips-section li:before {
    content: "•";
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    top: 8px;
}

.tips-section p {
    color: #5a6c7d;
    line-height: 1.7;
    margin: 20px 0;
    font-size: 1.05rem;
}

/* Warning Section */
.warning-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.2);
}

.warning-section h2 {
    color: #d68910;
    margin-top: 0;
    border-bottom-color: #f39c12;
}

.warning-section ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.warning-section li {
    padding: 12px 0;
    color: #d68910;
    line-height: 1.6;
    position: relative;
    padding-left: 35px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(243, 156, 18, 0.3);
}

.warning-section li:last-child {
    border-bottom: none;
}

.warning-section li:before {
    content: "⚠";
    color: #e67e22;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    background: rgba(243, 156, 18, 0.2);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Comparison Table Section */
.comparison-table-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border-left: 5px solid #9b59b6;
}

.comparison-table-section h2 {
    border-bottom-color: #9b59b6;
}

.table-container {
    overflow-x: auto;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table-container th {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
}

.table-container td {
    padding: 15px 20px;
    border-bottom: 1px solid #ecf0f1;
    color: #5a6c7d;
    font-size: 1rem;
}

.table-container tr:nth-child(even) {
    background: #f8f9fa;
}

.table-container tr:hover {
    background: #e3f2fd;
    transition: background 0.3s ease;
}

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

/* Popular Section */
.popular-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border-left: 5px solid #2ecc71;
}

.popular-section h2 {
    border-bottom-color: #2ecc71;
}

.popular-section ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.popular-section li {
    padding: 15px 0;
    color: #5a6c7d;
    line-height: 1.6;
    border-bottom: 2px solid #ecf0f1;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.popular-section li:hover {
    background: #f8f9fa;
    padding-left: 10px;
    border-radius: 8px;
}

.popular-section li:last-child {
    border-bottom: none;
}

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

/* Distance Section */
.distance-section {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.distance-section h2 {
    color: #2e7d32;
    margin-top: 0;
    border-bottom-color: #4caf50;
}

.distance-section p {
    color: #2e7d32;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.distance-section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.distance-section li {
    padding: 12px 0;
    color: #2e7d32;
    line-height: 1.6;
    position: relative;
    padding-left: 35px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
}

.distance-section li:last-child {
    border-bottom: none;
}

.distance-section li:before {
    content: "✓";
    color: #4caf50;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    background: rgba(76, 175, 80, 0.2);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border-left: 5px solid #f39c12;
}

.faq-section h2 {
    border-bottom-color: #f39c12;
}

.faq-section p {
    color: #5a6c7d;
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}

/* Summary Section */
.summary-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
}

.summary-section h2 {
    color: #1565c0;
    margin-top: 0;
    border-bottom-color: #2196f3;
}

.summary-section ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.summary-section li {
    padding: 15px 0;
    color: #1565c0;
    line-height: 1.6;
    position: relative;
    padding-left: 40px;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(33, 150, 243, 0.3);
}

.summary-section li:last-child {
    border-bottom: none;
}

.summary-section li:before {
    content: "→";
    color: #2196f3;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    background: rgba(33, 150, 243, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-section {
        padding: 60px 0;
    }
    
    .content-wrapper h1 {
        font-size: 2.4rem;
        padding: 0 10px;
    }
    
    .content-wrapper h2 {
        font-size: 2rem;
        margin: 40px 0 20px 0;
    }
    
    .content-wrapper h3 {
        font-size: 1.5rem;
        margin: 30px 0 15px 0;
    }
    
    .intro-text {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .info-section,
    .tips-section,
    .warning-section,
    .comparison-table-section,
    .popular-section,
    .distance-section,
    .faq-section,
    .summary-section {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .table-container {
        font-size: 0.9rem;
    }
    
    .table-container th,
    .table-container td {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 40px 0;
    }
    
    .content-wrapper {
        padding: 0 15px;
    }
    
    .content-wrapper h1 {
        font-size: 2rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.7rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .info-section,
    .tips-section,
    .warning-section,
    .comparison-table-section,
    .popular-section,
    .distance-section,
    .faq-section,
    .summary-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .table-container {
        font-size: 0.8rem;
    }
    
    .table-container th,
    .table-container td {
        padding: 10px;
    }
}

/* Content Links */
.content-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.content-link:hover {
    color: #2980b9;
    border-bottom-color: #3498db;
    text-decoration: none;
}

.content-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Theme-specific styles for new pages */
.compare-theme .hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.operators-theme .hero {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.surfguide-theme .hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.numberporting-theme .hero {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.roaming-theme .hero {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

/* Operators page specific styles */
.operators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.operator-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.operator-card h3 {
    color: var(--blue600);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.operator-card p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.low-cost-operators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.operator-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 3px solid var(--secondary-color);
}

.operator-item h4 {
    color: var(--blue600);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

/* Surfguide page specific styles */
.usage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue600);
    margin: 1rem 0;
}

.data-usage-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.usage-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.usage-icon {
    font-size: 2rem;
    margin-right: 1rem;
    min-width: 50px;
}

.usage-details h4 {
    margin-bottom: 0.5rem;
    color: var(--blue600);
}

.usage-amount {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Number porting page specific styles */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-card h3 {
    margin-top: 1rem;
    color: var(--blue600);
    margin-bottom: 1rem;
}

.warning-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.warning-card {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
}

.warning-card h4 {
    color: #856404;
    margin-bottom: 0.8rem;
}

/* Roaming page specific styles */
.eu-roaming-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.roaming-card {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.roaming-card.positive {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

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

.roaming-card.negative {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.roaming-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.non-eu-roaming {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.destination-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.destination-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.destination-card h4 {
    margin-bottom: 1rem;
    color: var(--blue600);
    font-size: 1.2rem;
}

/* FAQ sections */
.faq-container {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--primary-color);
}

.faq-item h4 {
    color: var(--blue600);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .operators-grid,
    .usage-stats,
    .steps-container,
    .eu-roaming-info,
    .non-eu-roaming {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .data-usage-table,
    .low-cost-operators,
    .warning-cards,
    .destination-tips {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .usage-item {
        flex-direction: column;
        text-align: center;
    }
    
    .usage-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .step-number {
        position: static;
        margin: 0 auto 1rem;
    }
}

@media (max-width: 480px) {
    .data-usage-table,
    .low-cost-operators,
    .warning-cards,
    .destination-tips {
        grid-template-columns: 1fr;
    }
    
    .stat-card,
    .operator-card,
    .step-card {
        padding: 1.5rem;
    }
}

/* === Mobiltelefoner & Filtersektion (från mobil.php) === */
.phones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 750px;
    margin: 0 auto;
}

@media (min-width: 701px) {
    .phones-grid {
        grid-template-columns: 1fr 1fr 1fr;
        max-width: 1600px;
        gap: 2rem;
    }
}

/* Snyggare filter-sektion för mobiltelefoner */
.filter-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-title::before {
    content: "\1F50D "; /* Sök-ikon */
    font-size: 1.1rem;
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1 1 0;
    min-width: 140px;
}

.filter-option {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    height: 44px;
    display: flex;
    align-items: center;
}

.filter-option:hover, .filter-option:focus {
    border-color: #FFC107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
    transform: translateY(-1px);
    outline: none;
}

.filter-option option {
    padding: 0.5rem;
    font-weight: 500;
}

@media (max-width: 700px) {
    .filter-options {
        gap: 0.7rem;
    }
    .filter-group {
        min-width: 110px;
    }
    .filter-option {
        min-width: 0;
        font-size: 0.9rem;
        height: 40px;
    }
}

/* === FOOTER STYLES === */
footer {
    background: #5596f7;
    color: #fff;
    padding: 2.5rem 0 1rem;
    margin-top: 4rem;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}
.footer-section h3 {
    color: #b11212;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}
.footer-section ul.list-unstyled {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.footer-section ul.list-unstyled li {
    margin-bottom: 0.4rem;
}
.footer-section a,
.footer-section a:visited,
.footer-section a:active,
.footer-section a:focus {
    color: #fff;
    text-decoration: none;
    background: none;
    outline: none;
    font-size: 0.98rem;
    transition: color 0.2s;
}
.footer-section a:hover {
    color: #fdea7c;
}
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
    color: #ff5454;
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
.social-links a {
    color: #d13b3b;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.social-links a:hover {
    color: #fdea7c;
}
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
        padding: 0 10px;
    }
    .footer-section h3 {
        font-size: 1rem;
    }
    .footer-section a {
        font-size: 0.92rem;
    }
}
@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .footer-section {
        margin-bottom: 1.2rem;
    }
}
/* === END FOOTER STYLES === */

footer .mb-2 {
    color: #fff !important;
}

/* === NY FOOTER === */
.main-footer {
  background: #232528;
  color: #fff;
  padding: 2.5rem 0 1rem;
  margin-top: 4rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.footer-col h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.footer-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.footer-list li {
  margin-bottom: 0.4rem;
}
.footer-list a,
.footer-list a:visited,
.footer-list a:active,
.footer-list a:focus {
  color: #fff;
  text-decoration: none;
  background: none;
  outline: none;
  font-size: 0.98rem;
  transition: color 0.2s;
}
.footer-list a:hover {
  color: #fdea7c;
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
  color: #ccc;
}
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    padding: 0 10px;
  }
  .footer-col h3 {
    font-size: 1rem;
  }
  .footer-list a {
    font-size: 0.92rem;
  }
}
@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .footer-col {
    margin-bottom: 1.2rem;
  }

  
}
/* === END NY FOOTER === */

/* === SEO FOOTER CUSTOM STYLES === */
footer.bg-dark {
  background: #232528;
  color: #fff;
}
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 0;
}
footer .col-lg-4, footer .col-lg-2, footer .col-md-6 {
  flex: 1 1 180px;
  min-width: 180px;
  margin-bottom: 1.5rem;
}
footer h3, footer h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}
footer ul.list-unstyled {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
footer .mb-2 {
  margin-bottom: 0.4rem !important;
}
footer a,
footer .text-muted.text-decoration-none,
footer .list-unstyled a {
  color: #fff !important;
  text-decoration: none;
  background: none;
  outline: none;
  font-size: 0.98rem;
  transition: color 0.2s;
}
footer a:hover,
footer .list-unstyled a:hover {
  color: #fdea7c !important;
}
footer .text-muted {
  color: #ccc !important;
}
footer .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
footer .social-links a {
  color: #fff !important;
  font-size: 1.3rem;
  transition: color 0.2s;
}
footer .social-links a:hover {
  color: #fdea7c !important;
}
footer hr.my-4 {
  border-color: rgba(255,255,255,0.08);
  margin: 2rem 0;
}
footer .footer-bottom, footer .mb-0.text-muted.small {
  text-align: center;
  color: #ccc !important;
  font-size: 0.9rem;
}
@media (max-width: 991px) {
  footer .row {
    flex-direction: column;
    gap: 0;
  }
  footer .col-lg-4, footer .col-lg-2, footer .col-md-6 {
    min-width: 0;
    width: 100%;
    margin-bottom: 1.2rem;
  }
}
/* === END SEO FOOTER CUSTOM STYLES === */

main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

main h1.text-center {
    margin-bottom: 1rem !important;
    margin-top: 0.5rem !important;
}

main p.text-muted {
    margin-bottom: 1.2rem !important;
    margin-top: 0 !important;
}

.row.mb-4 {
    margin-bottom: 0.8rem !important;
    margin-top: 0 !important;
}